MCPcopy Create free account
hub / github.com/TanStack/query / isIdentifierWithName

Function isIdentifierWithName

packages/eslint-plugin-query/src/utils/ast-utils.ts:15–20  ·  view source on GitHub ↗
(
    node: TSESTree.Node,
    name: string,
  )

Source from the content-addressed store, hash-verified

13 return node.type === AST_NODE_TYPES.Identifier
14 },
15 isIdentifierWithName(
16 node: TSESTree.Node,
17 name: string,
18 ): node is TSESTree.Identifier {
19 return ASTUtils.isIdentifier(node) && node.name === name
20 },
21 isIdentifierWithOneOfNames<T extends Array<string>>(
22 node: TSESTree.Node,
23 name: T,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected