File tree Expand file tree Collapse file tree 5 files changed +30
-3
lines changed Expand file tree Collapse file tree 5 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 11
11
" --config" ,
12
12
" ${workspaceFolder}/.config/mocha.fast.json" ,
13
13
" -g" ,
14
- " 2135 "
14
+ " 2200 "
15
15
],
16
16
"internalConsoleOptions" : " openOnSessionStart" ,
17
17
"name" : " Debug Tests" ,
Original file line number Diff line number Diff line change 1
1
# Unreleased
2
2
3
+ ### Bug Fixes
4
+
5
+ - Fixed a bug where optional properties were not appropriately marked as optional, #2200 .
6
+ - Fixed shifted navigation pane on devices 1024px wide, #2191 .
7
+
8
+ ### Thanks!
9
+
10
+ - @futurGH
11
+
3
12
## v0.23.26 (2023-02-26)
4
13
5
14
### Features
Original file line number Diff line number Diff line change @@ -633,9 +633,13 @@ function convertProperty(
633
633
( ts . isPropertyDeclaration ( declaration ) ||
634
634
ts . isPropertySignature ( declaration ) ||
635
635
ts . isParameter ( declaration ) ||
636
- ts . isPropertyAccessExpression ( declaration ) )
636
+ ts . isPropertyAccessExpression ( declaration ) ||
637
+ ts . isPropertyAssignment ( declaration ) )
637
638
) {
638
- if ( ! ts . isPropertyAccessExpression ( declaration ) ) {
639
+ if (
640
+ ! ts . isPropertyAccessExpression ( declaration ) &&
641
+ ! ts . isPropertyAssignment ( declaration )
642
+ ) {
639
643
parameterType = declaration . type ;
640
644
}
641
645
setModifiers ( symbol , declaration , reflection ) ;
Original file line number Diff line number Diff line change
1
+ declare function buildObj < T > ( x : T ) : {
2
+ [ K in keyof T ] ?: 1 ;
3
+ } ;
4
+
5
+ export const Test = buildObj ( { x : 1 } ) ;
Original file line number Diff line number Diff line change @@ -854,4 +854,13 @@ export const issueTests: {
854
854
equal ( def . type ?. type , "intrinsic" ) ;
855
855
equal ( def . type . toString ( ) , "undefined" ) ;
856
856
} ,
857
+
858
+ gh2200 ( project ) {
859
+ const Test = query ( project , "Test" ) ;
860
+ equal ( Test . type ?. type , "reflection" as const ) ;
861
+ equal (
862
+ Test . type . declaration . getChildByName ( "x" ) ?. flags . isOptional ,
863
+ true
864
+ ) ;
865
+ } ,
857
866
} ;
You can’t perform that action at this time.
0 commit comments