Merge pull request #14327 from Microsoft/getTypeParameters

Add more specific return type for `getTypeParameters()`
This commit is contained in:
Andy 2017-02-27 10:46:03 -08:00 committed by GitHub
commit 14b0c77f24
2 changed files with 2 additions and 2 deletions

View file

@ -412,7 +412,7 @@ namespace ts {
getDeclaration(): SignatureDeclaration {
return this.declaration;
}
getTypeParameters(): Type[] {
getTypeParameters(): TypeParameter[] {
return this.typeParameters;
}
getParameters(): Symbol[] {

View file

@ -39,7 +39,7 @@ namespace ts {
export interface Signature {
getDeclaration(): SignatureDeclaration;
getTypeParameters(): Type[];
getTypeParameters(): TypeParameter[];
getParameters(): Symbol[];
getReturnType(): Type;
getDocumentationComment(): SymbolDisplayPart[];