typescript 4.9.1-beta → 4.9.2-rc

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.
@@ -5399,9 +5399,9 @@ declare namespace ts {
5399
5399
  /** If provided, called with Diagnostic message that informs about change in watch status */
5400
5400
  onWatchStatusChange?(diagnostic: Diagnostic, newLine: string, options: CompilerOptions, errorCount?: number): void;
5401
5401
  /** Used to watch changes in source files, missing files needed to update the program or config file */
5402
- watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?: CompilerOptions): FileWatcher;
5402
+ watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?: WatchOptions): FileWatcher;
5403
5403
  /** Used to watch resolved module's failed lookup locations, config file specs, type roots where auto type reference directives are added */
5404
- watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?: CompilerOptions): FileWatcher;
5404
+ watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?: WatchOptions): FileWatcher;
5405
5405
  /** If provided, will be used to set delayed compilation, so that multiple changes in short span are compiled together */
5406
5406
  setTimeout?(callback: (...args: any[]) => void, ms: number, ...args: any[]): any;
5407
5407
  /** If provided, will be used to reset existing delayed compilation */
@@ -6032,8 +6032,15 @@ declare namespace ts {
6032
6032
  type: "file";
6033
6033
  fileName: string;
6034
6034
  }
6035
+ enum OrganizeImportsMode {
6036
+ All = "All",
6037
+ SortAndCombine = "SortAndCombine",
6038
+ RemoveUnused = "RemoveUnused"
6039
+ }
6035
6040
  interface OrganizeImportsArgs extends CombinedCodeFixScope {
6041
+ /** @deprecated Use `mode` instead */
6036
6042
  skipDestructiveCodeActions?: boolean;
6043
+ mode?: OrganizeImportsMode;
6037
6044
  }
6038
6045
  type CompletionsTriggerCharacter = "." | '"' | "'" | "`" | "/" | "@" | "<" | "#" | " ";
6039
6046
  enum CompletionTriggerKind {