File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ declare namespace FourSlashInterface {
97
97
InsertSpaceAfterTypeAssertion : boolean ;
98
98
PlaceOpenBraceOnNewLineForFunctions : boolean ;
99
99
PlaceOpenBraceOnNewLineForControlBlocks : boolean ;
100
- [ s : string ] : boolean | number | string | undefined ;
101
100
}
102
101
interface Range {
103
102
fileName : string ;
@@ -375,7 +374,7 @@ declare namespace FourSlashInterface {
375
374
setFormatOptions ( options : FormatCodeOptions ) : any ;
376
375
selection ( startMarker : string , endMarker : string ) : void ;
377
376
onType ( posMarker : string , key : string ) : void ;
378
- setOption ( name : keyof FormatCodeOptions , value : number | string | boolean ) : void ;
377
+ setOption < K extends keyof FormatCodeOptions > ( name : K , value : FormatCodeOptions [ K ] ) : void ;
379
378
}
380
379
class cancellation {
381
380
resetCancelled ( ) : void ;
You can’t perform that action at this time.
0 commit comments