Skip to main content

Function: getVisibleImportLocalNameAtNode()

function getVisibleImportLocalNameAtNode<MessageIds, Options>(
context: Readonly<TSESLint.RuleContext<MessageIds, Options>>,
node: Readonly<Node>,
importBindings: ReadonlyMap<string, Identifier>
): string | undefined;

Defined in: _internal/module-import-bindings.ts:173

Resolve the first imported local name that remains visible at a node.

Type Parametersโ€‹

MessageIdsโ€‹

MessageIds extends string

Optionsโ€‹

Options extends readonly unknown[]

Parametersโ€‹

contextโ€‹

Readonly<TSESLint.RuleContext<MessageIds, Options>>

nodeโ€‹

Readonly<Node>

importBindingsโ€‹

ReadonlyMap<string, Identifier>

Returnsโ€‹

string | undefined