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