Function: isIdentifierTypeReference()
isIdentifierTypeReference(
node:Readonly<TypeNode>,identifierName:string):node is TSTypeReference & { typeName: Identifier }
Defined in: _internal/type-reference-node.ts:17
Checks whether a type node is an identifier-based type reference with a specific symbol name.
Parametersโ
nodeโ
Readonly<TypeNode>
Type node candidate.
identifierNameโ
string
Expected referenced identifier name.
Returnsโ
node is TSTypeReference & { typeName: Identifier }
true when the node is TSTypeReference and the referenced
typeName identifier matches exactly.