Files
SnowLuma/.pnpm-store/v11/files/c1/fdc6ec14bbf5bce722a5559d113dca18b9f6b16baa76afa20b159217702de232a1e1413beff60da0515d53c8679702f7416c69ec784d967aab36073c0507ab
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

18 lines
668 B
Plaintext

import type { TSESTree } from '@typescript-eslint/utils';
import type { Key, MemberNode } from './types';
export interface ExtractedName {
key: Key;
codeName: string;
nameNode: TSESTree.Node;
}
/**
* Extracts the string name for a member.
* @returns `null` if the name cannot be extracted due to it being computed.
*/
export declare function extractNameForMember(node: MemberNode): ExtractedName | null;
/**
* Extracts the string property name for a member.
* @returns `null` if the name cannot be extracted due to it being a computed.
*/
export declare function extractNameForMemberExpression(node: TSESTree.MemberExpression): ExtractedName | null;