mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Add type annotation
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user