File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -2562,11 +2562,7 @@ namespace ts.server.protocol {
2562
2562
body ?: SignatureHelpItems ;
2563
2563
}
2564
2564
2565
- export const enum InlayHintKind {
2566
- Type = "Type" ,
2567
- Parameter = "Parameter" ,
2568
- Enum = "Enum" ,
2569
- }
2565
+ export type InlayHintKind = "Type" | "Parameter" | "Enum" ;
2570
2566
2571
2567
export interface InlayHintsRequestArgs extends FileRequestArgs {
2572
2568
/**
@@ -2587,7 +2583,7 @@ namespace ts.server.protocol {
2587
2583
export interface InlayHintItem {
2588
2584
text : string ;
2589
2585
position : Location ;
2590
- kind ? : InlayHintKind ;
2586
+ kind : InlayHintKind ;
2591
2587
whitespaceBefore ?: boolean ;
2592
2588
whitespaceAfter ?: boolean ;
2593
2589
}
Original file line number Diff line number Diff line change @@ -1452,7 +1452,7 @@ namespace ts.server {
1452
1452
} ) ;
1453
1453
}
1454
1454
1455
- private provideInlayHints ( args : protocol . InlayHintsRequestArgs ) {
1455
+ private provideInlayHints ( args : protocol . InlayHintsRequestArgs ) : readonly protocol . InlayHintItem [ ] {
1456
1456
const { file, languageService } = this . getFileAndLanguageServiceForSyntacticOperation ( args ) ;
1457
1457
const scriptInfo = this . projectService . getScriptInfoForNormalizedPath ( file ) ! ;
1458
1458
const hints = languageService . provideInlayHints ( file , args , this . getPreferences ( file ) ) ;
Original file line number Diff line number Diff line change @@ -720,7 +720,7 @@ namespace ts {
720
720
export interface InlayHint {
721
721
text : string ;
722
722
position : number ;
723
- kind ? : InlayHintKind ;
723
+ kind : InlayHintKind ;
724
724
whitespaceBefore ?: boolean ;
725
725
whitespaceAfter ?: boolean ;
726
726
}
You can’t perform that action at this time.
0 commit comments