Skip to main content

Function: getGlobalIdentifierMemberCall()

function getGlobalIdentifierMemberCall<MessageIds, Options>(
options: Readonly<{
context: Readonly<TSESLint.RuleContext<MessageIds, Options>>;
memberName: string;
node: Readonly<TSESTree.CallExpression>;
objectName: string;
}>
): IdentifierMemberCallExpression | null;

Defined in: _internal/global-identifier-member-call.ts:23

Match GlobalName.memberName(...) calls where GlobalName resolves to the unshadowed global binding.

Type Parametersโ€‹

MessageIdsโ€‹

MessageIds extends string

Optionsโ€‹

Options extends readonly unknown[]

Parametersโ€‹

optionsโ€‹

Readonly<{ context: Readonly<TSESLint.RuleContext<MessageIds, Options>>; memberName: string; node: Readonly<TSESTree.CallExpression>; objectName: string; }>

Rule context and candidate call details.

Returnsโ€‹

| IdentifierMemberCallExpression | null

Narrowed call expression when matched against the global binding; otherwise null.