We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ae62c3 commit b1ad54bCopy full SHA for b1ad54b
1 file changed
src/compiler/checker.ts
@@ -8971,7 +8971,7 @@ namespace ts {
8971
return undefined;
8972
}
8973
8974
- function getConstraintDeclaration(type: TypeParameter) {
+ function getConstraintDeclaration(type: TypeParameter): TypeNode | undefined {
8975
return mapDefined(filter(type.symbol && type.symbol.declarations, isTypeParameterDeclaration), getEffectiveConstraintOfTypeParameter)[0];
8976
8977
0 commit comments