typescript 5.2.0-dev.20230720 → 5.2.0-dev.20230722

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2124,12 +2124,16 @@ declare namespace ts {
2124
2124
  arguments: InlayHintsRequestArgs;
2125
2125
  }
2126
2126
  interface InlayHintItem {
2127
- text: string;
2127
+ text: string | InlayHintItemDisplayPart[];
2128
2128
  position: Location;
2129
2129
  kind: InlayHintKind;
2130
2130
  whitespaceBefore?: boolean;
2131
2131
  whitespaceAfter?: boolean;
2132
2132
  }
2133
+ interface InlayHintItemDisplayPart {
2134
+ text: string;
2135
+ span?: FileSpan;
2136
+ }
2133
2137
  interface InlayHintsResponse extends Response {
2134
2138
  body?: InlayHintItem[];
2135
2139
  }
@@ -2832,6 +2836,7 @@ declare namespace ts {
2832
2836
  readonly includeInlayPropertyDeclarationTypeHints?: boolean;
2833
2837
  readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
2834
2838
  readonly includeInlayEnumMemberValueHints?: boolean;
2839
+ readonly interactiveInlayHints?: boolean;
2835
2840
  readonly autoImportFileExcludePatterns?: string[];
2836
2841
  /**
2837
2842
  * Indicates whether imports should be organized in a case-insensitive manner.
@@ -8400,6 +8405,7 @@ declare namespace ts {
8400
8405
  readonly includeInlayPropertyDeclarationTypeHints?: boolean;
8401
8406
  readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
8402
8407
  readonly includeInlayEnumMemberValueHints?: boolean;
8408
+ readonly interactiveInlayHints?: boolean;
8403
8409
  readonly allowRenameOfImportPath?: boolean;
8404
8410
  readonly autoImportFileExcludePatterns?: string[];
8405
8411
  readonly organizeImportsIgnoreCase?: "auto" | boolean;
@@ -10382,12 +10388,17 @@ declare namespace ts {
10382
10388
  Enum = "Enum"
10383
10389
  }
10384
10390
  interface InlayHint {
10385
- text: string;
10391
+ text: string | InlayHintDisplayPart[];
10386
10392
  position: number;
10387
10393
  kind: InlayHintKind;
10388
10394
  whitespaceBefore?: boolean;
10389
10395
  whitespaceAfter?: boolean;
10390
10396
  }
10397
+ interface InlayHintDisplayPart {
10398
+ text: string;
10399
+ span?: TextSpan;
10400
+ file?: string;
10401
+ }
10391
10402
  interface TodoCommentDescriptor {
10392
10403
  text: string;
10393
10404
  priority: number;