File tree 3 files changed +10
-0
lines changed
3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ namespace ts {
68
68
getPropertyOfType,
69
69
getSignaturesOfType,
70
70
getIndexTypeOfType,
71
+ getBaseTypes,
71
72
getReturnTypeOfSignature,
72
73
getSymbolsInScope,
73
74
getSymbolAtLocation,
Original file line number Diff line number Diff line change @@ -1404,6 +1404,7 @@ namespace ts {
1404
1404
getPropertyOfType ( type : Type , propertyName : string ) : Symbol ;
1405
1405
getSignaturesOfType ( type : Type , kind : SignatureKind ) : Signature [ ] ;
1406
1406
getIndexTypeOfType ( type : Type , kind : IndexKind ) : Type ;
1407
+ getBaseTypes ( type : InterfaceType ) : ObjectType [ ] ;
1407
1408
getReturnTypeOfSignature ( signature : Signature ) : Type ;
1408
1409
1409
1410
getSymbolsInScope ( location : Node , meaning : SymbolFlags ) : Symbol [ ] ;
@@ -1808,7 +1809,9 @@ namespace ts {
1808
1809
typeParameters : TypeParameter [ ] ; // Type parameters (undefined if non-generic)
1809
1810
outerTypeParameters : TypeParameter [ ] ; // Outer type parameters (undefined if none)
1810
1811
localTypeParameters : TypeParameter [ ] ; // Local type parameters (undefined if none)
1812
+ /* @internal */
1811
1813
resolvedBaseConstructorType ?: Type ; // Resolved base constructor type of class
1814
+ /* @internal */
1812
1815
resolvedBaseTypes : ObjectType [ ] ; // Resolved base types
1813
1816
}
1814
1817
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ namespace ts {
48
48
getConstructSignatures ( ) : Signature [ ] ;
49
49
getStringIndexType ( ) : Type ;
50
50
getNumberIndexType ( ) : Type ;
51
+ getBaseTypes ( ) : ObjectType [ ]
51
52
}
52
53
53
54
export interface Signature {
@@ -682,6 +683,11 @@ namespace ts {
682
683
getNumberIndexType ( ) : Type {
683
684
return this . checker . getIndexTypeOfType ( this , IndexKind . Number ) ;
684
685
}
686
+ getBaseTypes ( ) : ObjectType [ ] {
687
+ return this . flags & ( TypeFlags . Class | TypeFlags . Interface )
688
+ ? this . checker . getBaseTypes ( < TypeObject & InterfaceType > this )
689
+ : undefined ;
690
+ }
685
691
}
686
692
687
693
class SignatureObject implements Signature {
You can’t perform that action at this time.
0 commit comments