Function: isTypeParameterReference()
function isTypeParameterReference(
sourceCode: Readonly<TSESLint.SourceCode>,
declaration: Readonly<TSMappedType | TSTypeParameter>,
candidate: Readonly<TypeNode>
): boolean;
Defined in: _internal/type-parameter-reference.ts:12
Check that a bare type reference resolves to the indicated generic parameter or mapped key. A same-named parameter can shadow the outer one in a mapped type, including within the key constraint.
Parametersโ
sourceCodeโ
Readonly<TSESLint.SourceCode>
declarationโ
Readonly<TSMappedType | TSTypeParameter>
candidateโ
Readonly<TypeNode>
Returnsโ
boolean