Function: isIdentifierTypeReference()
function isIdentifierTypeReference(
node: Readonly<TypeNode>,
identifierName: string
): node is TSTypeReference & { typeName: Identifier };
Defined in: _internal/type-reference-node.ts:25
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.