Skip to content

Commit c2f4b20

Browse files
author
andy-ms
committed
Add more specific return type for getTypeParameters()
1 parent 87d804e commit c2f4b20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/services/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ namespace ts {
412412
getDeclaration(): SignatureDeclaration {
413413
return this.declaration;
414414
}
415-
getTypeParameters(): Type[] {
415+
getTypeParameters(): TypeParameter[] {
416416
return this.typeParameters;
417417
}
418418
getParameters(): Symbol[] {

src/services/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace ts {
3939

4040
export interface Signature {
4141
getDeclaration(): SignatureDeclaration;
42-
getTypeParameters(): Type[];
42+
getTypeParameters(): TypeParameter[];
4343
getParameters(): Symbol[];
4444
getReturnType(): Type;
4545
getDocumentationComment(): SymbolDisplayPart[];

0 commit comments

Comments
 (0)