File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
1
.DS_Store
2
2
.idea
3
+ .vs
3
4
.tscache
4
5
.baseDir.js
5
6
.baseDir.ts
@@ -22,4 +23,4 @@ src/test/renderer/specs/specs.json
22
23
# Built theme JS
23
24
static /main.js
24
25
25
- /example /docs /
26
+ /example /docs /
Original file line number Diff line number Diff line change 1
1
# Unreleased
2
2
3
+ ### Bug Fixes
4
+
5
+ - Restore support for TS 4.0 through 4.5, #1945 .
6
+
3
7
## v0.22.16 (2022-05-30)
4
8
5
9
### Features
Original file line number Diff line number Diff line change @@ -666,10 +666,13 @@ function convertProperty(
666
666
}
667
667
reflection . defaultValue = declaration && convertDefaultValue ( declaration ) ;
668
668
669
+ // FIXME: Once we drop support for TS 4.5, we can use context.checker.getTypeOfSymbol(symbol) here.
669
670
reflection . type = context . converter . convertType (
670
671
context ,
671
672
( context . isConvertingTypeNode ( ) ? parameterType : void 0 ) ??
672
- context . checker . getTypeOfSymbol ( symbol )
673
+ context . checker . getTypeOfSymbolAtLocation ( symbol , {
674
+ kind : ts . SyntaxKind . SourceFile ,
675
+ } as any )
673
676
) ;
674
677
675
678
if ( reflection . flags . isOptional ) {
Original file line number Diff line number Diff line change @@ -21,8 +21,9 @@ declare module "typescript" {
21
21
signature : ts . Signature
22
22
) : ts . TypePredicate | undefined ;
23
23
24
- //https://github.com/microsoft/TypeScript/blob/v4.7.2/src/compiler/types.ts#L4188
25
- getTypeOfSymbol ( symbol : Symbol ) : Type ;
24
+ // Since TS 4.6, not available earlier.
25
+ // https://github.com/microsoft/TypeScript/blob/v4.7.2/src/compiler/types.ts#L4188
26
+ // getTypeOfSymbol(symbol: Symbol): Type;
26
27
}
27
28
28
29
export interface Signature {
You can’t perform that action at this time.
0 commit comments