typescript 5.1.0-dev.20230420 → 5.1.0-dev.20230422

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.
@@ -407,10 +407,8 @@ declare namespace ts {
407
407
  NotEmittedStatement = 358,
408
408
  PartiallyEmittedExpression = 359,
409
409
  CommaListExpression = 360,
410
- MergeDeclarationMarker = 361,
411
- EndOfDeclarationMarker = 362,
412
- SyntheticReferenceExpression = 363,
413
- Count = 364,
410
+ SyntheticReferenceExpression = 361,
411
+ Count = 362,
414
412
  FirstAssignment = 64,
415
413
  LastAssignment = 79,
416
414
  FirstCompoundAssignment = 65,
@@ -3501,9 +3499,8 @@ declare namespace ts {
3501
3499
  ReuseTempVariableScope = 1048576,
3502
3500
  CustomPrologue = 2097152,
3503
3501
  NoHoisting = 4194304,
3504
- HasEndOfDeclarationMarker = 8388608,
3505
- Iterator = 16777216,
3506
- NoAsciiEscaping = 33554432
3502
+ Iterator = 8388608,
3503
+ NoAsciiEscaping = 16777216
3507
3504
  }
3508
3505
  interface EmitHelperBase {
3509
3506
  readonly name: string;
@@ -5222,7 +5219,7 @@ declare namespace ts {
5222
5219
  * this list is only the set of defaults that are implicitly included.
5223
5220
  */
5224
5221
  function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[];
5225
- function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions): ModuleResolutionCache;
5222
+ function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): ModuleResolutionCache;
5226
5223
  function createTypeReferenceDirectiveResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): TypeReferenceDirectiveResolutionCache;
5227
5224
  function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations | undefined;
5228
5225
  function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations;
@@ -6153,6 +6150,8 @@ declare namespace ts {
6153
6150
  getRenameInfo(fileName: string, position: number, preferences: UserPreferences): RenameInfo;
6154
6151
  /** @deprecated Use the signature with `UserPreferences` instead. */
6155
6152
  getRenameInfo(fileName: string, position: number, options?: RenameInfoOptions): RenameInfo;
6153
+ findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, preferences: UserPreferences): readonly RenameLocation[] | undefined;
6154
+ /** @deprecated Pass `providePrefixAndSuffixTextForRename` as part of a `UserPreferences` parameter. */
6156
6155
  findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean, providePrefixAndSuffixTextForRename?: boolean): readonly RenameLocation[] | undefined;
6157
6156
  getSmartSelectionRange(fileName: string, position: number): SelectionRange;
6158
6157
  getDefinitionAtPosition(fileName: string, position: number): readonly DefinitionInfo[] | undefined;
@@ -6205,7 +6204,11 @@ declare namespace ts {
6205
6204
  * arguments for any interactive action before offering it.
6206
6205
  */
6207
6206
  getApplicableRefactors(fileName: string, positionOrRange: number | TextRange, preferences: UserPreferences | undefined, triggerReason?: RefactorTriggerReason, kind?: string, includeInteractiveActions?: boolean): ApplicableRefactorInfo[];
6208
- getEditsForRefactor(fileName: string, formatOptions: FormatCodeSettings, positionOrRange: number | TextRange, refactorName: string, actionName: string, preferences: UserPreferences | undefined): RefactorEditInfo | undefined;
6207
+ getEditsForRefactor(fileName: string, formatOptions: FormatCodeSettings, positionOrRange: number | TextRange, refactorName: string, actionName: string, preferences: UserPreferences | undefined, includeInteractiveActions?: InteractiveRefactorArguments): RefactorEditInfo | undefined;
6208
+ getMoveToRefactoringFileSuggestions(fileName: string, positionOrRange: number | TextRange, preferences: UserPreferences | undefined, triggerReason?: RefactorTriggerReason, kind?: string): {
6209
+ newFileName: string;
6210
+ files: string[];
6211
+ };
6209
6212
  organizeImports(args: OrganizeImportsArgs, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): readonly FileTextChanges[];
6210
6213
  getEditsForFileRename(oldFilePath: string, newFilePath: string, formatOptions: FormatCodeSettings, preferences: UserPreferences | undefined): readonly FileTextChanges[];
6211
6214
  getEmitOutput(fileName: string, emitOnlyDtsFiles?: boolean, forceDtsEmit?: boolean): EmitOutput;
@@ -6713,6 +6716,9 @@ declare namespace ts {
6713
6716
  interface DocCommentTemplateOptions {
6714
6717
  readonly generateReturnInDocTemplate?: boolean;
6715
6718
  }
6719
+ interface InteractiveRefactorArguments {
6720
+ targetFile: string;
6721
+ }
6716
6722
  interface SignatureHelpParameter {
6717
6723
  name: string;
6718
6724
  documentation: SymbolDisplayPart[];