Add type annotation

This commit is contained in:
Wesley Wigham
2019-09-18 13:22:40 -07:00
parent 4ae62c3884
commit b1ad54b382
+1 -1
View File
@@ -8971,7 +8971,7 @@ namespace ts {
return undefined;
}
function getConstraintDeclaration(type: TypeParameter) {
function getConstraintDeclaration(type: TypeParameter): TypeNode | undefined {
return mapDefined(filter(type.symbol && type.symbol.declarations, isTypeParameterDeclaration), getEffectiveConstraintOfTypeParameter)[0];
}