File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1007,7 +1007,7 @@ namespace ts {
1007
1007
let seenKnownKeys = 0 ;
1008
1008
const nameColumn : string [ ] = [ ] ;
1009
1009
const descriptionColumn : string [ ] = [ ] ;
1010
- const knownKesyCount = getOwnKeys ( configurations . compilerOptions ) . length ;
1010
+ const knownKeysCount = getOwnKeys ( configurations . compilerOptions ) . length ;
1011
1011
for ( const category in categorizedOptions ) {
1012
1012
if ( nameColumn . length !== 0 ) {
1013
1013
nameColumn . push ( "" ) ;
@@ -1018,7 +1018,7 @@ namespace ts {
1018
1018
for ( const option of categorizedOptions [ category ] ) {
1019
1019
let optionName ;
1020
1020
if ( hasProperty ( configurations . compilerOptions , option . name ) ) {
1021
- optionName = `"${ option . name } ": ${ JSON . stringify ( configurations . compilerOptions [ option . name ] ) } ${ ( seenKnownKeys += 1 ) === knownKesyCount ? "" : "," } ` ;
1021
+ optionName = `"${ option . name } ": ${ JSON . stringify ( configurations . compilerOptions [ option . name ] ) } ${ ( seenKnownKeys += 1 ) === knownKeysCount ? "" : "," } ` ;
1022
1022
}
1023
1023
else {
1024
1024
optionName = `// "${ option . name } ": ${ JSON . stringify ( getDefaultValueForOption ( option ) ) } ,` ;
Original file line number Diff line number Diff line change @@ -945,7 +945,7 @@ namespace ts {
945
945
export function assign < T1 extends MapLike < { } > > ( t : T1 , ...args : any [ ] ) : any ;
946
946
export function assign < T1 extends MapLike < { } > > ( t : T1 , ...args : any [ ] ) {
947
947
for ( const arg of args ) {
948
- for ( const p of getOwnKeys ( arg ) ) {
948
+ for ( const p in arg ) if ( hasProperty ( arg , p ) ) {
949
949
t [ p ] = arg [ p ] ;
950
950
}
951
951
}
You can’t perform that action at this time.
0 commit comments