typescript 4.8.0-dev.20220616 → 4.8.0-dev.20220619

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.
@@ -4137,6 +4137,8 @@ declare namespace ts {
4137
4137
  readonly includeInlayPropertyDeclarationTypeHints?: boolean;
4138
4138
  readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
4139
4139
  readonly includeInlayEnumMemberValueHints?: boolean;
4140
+ readonly allowRenameOfImportPath?: boolean;
4141
+ readonly autoImportFileExcludePatterns?: string[];
4140
4142
  }
4141
4143
  /** Represents a bigint literal value without requiring bigint support */
4142
4144
  export interface PseudoBigInt {
@@ -5917,6 +5919,8 @@ declare namespace ts {
5917
5919
  getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): TextSpan | undefined;
5918
5920
  getBreakpointStatementAtPosition(fileName: string, position: number): TextSpan | undefined;
5919
5921
  getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems | undefined;
5922
+ getRenameInfo(fileName: string, position: number, preferences: UserPreferences): RenameInfo;
5923
+ /** @deprecated Use the signature with `UserPreferences` instead. */
5920
5924
  getRenameInfo(fileName: string, position: number, options?: RenameInfoOptions): RenameInfo;
5921
5925
  findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, providePrefixAndSuffixTextForRename?: boolean): readonly RenameLocation[] | undefined;
5922
5926
  getSmartSelectionRange(fileName: string, position: number): SelectionRange;
@@ -6296,6 +6300,7 @@ declare namespace ts {
6296
6300
  Insert = "insert",
6297
6301
  Remove = "remove"
6298
6302
  }
6303
+ /** @deprecated - consider using EditorSettings instead */
6299
6304
  interface EditorOptions {
6300
6305
  BaseIndentSize?: number;
6301
6306
  IndentSize: number;
@@ -6313,6 +6318,7 @@ declare namespace ts {
6313
6318
  indentStyle?: IndentStyle;
6314
6319
  trimTrailingWhitespace?: boolean;
6315
6320
  }
6321
+ /** @deprecated - consider using FormatCodeSettings instead */
6316
6322
  interface FormatCodeOptions extends EditorOptions {
6317
6323
  InsertSpaceAfterCommaDelimiter: boolean;
6318
6324
  InsertSpaceAfterSemicolonInForStatements: boolean;
@@ -6438,6 +6444,9 @@ declare namespace ts {
6438
6444
  canRename: false;
6439
6445
  localizedErrorMessage: string;
6440
6446
  }
6447
+ /**
6448
+ * @deprecated Use `UserPreferences` instead.
6449
+ */
6441
6450
  interface RenameInfoOptions {
6442
6451
  readonly allowRenameOfImportPath?: boolean;
6443
6452
  }
@@ -9761,6 +9770,7 @@ declare namespace ts.server.protocol {
9761
9770
  readonly includeInlayPropertyDeclarationTypeHints?: boolean;
9762
9771
  readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
9763
9772
  readonly includeInlayEnumMemberValueHints?: boolean;
9773
+ readonly autoImportFileExcludePatterns?: string[];
9764
9774
  }
9765
9775
  interface CompilerOptions {
9766
9776
  allowJs?: boolean;