@@ -532,6 +532,7 @@ declare namespace ts {
532
532
kind : SyntaxKind . TypeParameter ;
533
533
parent : DeclarationWithTypeParameters | InferTypeNode ;
534
534
name : Identifier ;
535
+ typeParameters ?: NodeArray < TypeParameterDeclaration > ;
535
536
constraint ?: TypeNode ;
536
537
default ?: TypeNode ;
537
538
expression ?: Expression ;
@@ -1282,7 +1283,7 @@ declare namespace ts {
1282
1283
block : Block ;
1283
1284
}
1284
1285
type ObjectTypeDeclaration = ClassLikeDeclaration | InterfaceDeclaration | TypeLiteralNode ;
1285
- type DeclarationWithTypeParameters = SignatureDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | JSDocTemplateTag | JSDocTypedefTag | JSDocCallbackTag | JSDocSignature ;
1286
+ type DeclarationWithTypeParameters = SignatureDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | TypeParameterDeclaration | JSDocTemplateTag | JSDocTypedefTag | JSDocCallbackTag | JSDocSignature ;
1286
1287
interface ClassLikeDeclarationBase extends NamedDeclaration , JSDocContainer {
1287
1288
kind : SyntaxKind . ClassDeclaration | SyntaxKind . ClassExpression ;
1288
1289
name ?: Identifier ;
@@ -2210,6 +2211,7 @@ declare namespace ts {
2210
2211
ReverseMapped = 2048 ,
2211
2212
JsxAttributes = 4096 ,
2212
2213
MarkerType = 8192 ,
2214
+ GenericTypeParameter = 16384 ,
2213
2215
ClassOrInterface = 3
2214
2216
}
2215
2217
interface ObjectType extends Type {
@@ -2243,6 +2245,7 @@ declare namespace ts {
2243
2245
interface TypeReference extends ObjectType {
2244
2246
target : GenericType ;
2245
2247
typeArguments ?: Type [ ] ;
2248
+ typeParameterReference ?: boolean ;
2246
2249
}
2247
2250
interface GenericType extends InterfaceType , TypeReference {
2248
2251
}
@@ -2262,6 +2265,9 @@ declare namespace ts {
2262
2265
}
2263
2266
interface TypeParameter extends InstantiableType {
2264
2267
}
2268
+ interface GenericTypeParameter extends GenericType , TypeParameter , InterfaceTypeWithDeclaredMembers {
2269
+ localTypeParameters : TypeParameter [ ] ;
2270
+ }
2265
2271
interface IndexedAccessType extends InstantiableType {
2266
2272
objectType : Type ;
2267
2273
indexType : Type ;
0 commit comments