@typescript-deploys/pr-build 4.7.0-pr-48784-4 → 4.7.0-pr-48997-6

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.
@@ -2063,7 +2063,7 @@ declare namespace ts {
2063
2063
  hasNoDefaultLib: boolean;
2064
2064
  languageVersion: ScriptTarget;
2065
2065
  /**
2066
- * When `module` is `Node12` or `NodeNext`, this field controls whether the
2066
+ * When `module` is `Node16` or `NodeNext`, this field controls whether the
2067
2067
  * source file in question is an ESNext-output-format file, or a CommonJS-output-format
2068
2068
  * module. This is derived by the module resolver as it looks up the file, since
2069
2069
  * it is derived from either the file extension of the module, or the containing
@@ -2893,7 +2893,7 @@ declare namespace ts {
2893
2893
  export enum ModuleResolutionKind {
2894
2894
  Classic = 1,
2895
2895
  NodeJs = 2,
2896
- Node12 = 3,
2896
+ Node16 = 3,
2897
2897
  NodeNext = 99
2898
2898
  }
2899
2899
  export enum ModuleDetectionKind {
@@ -2902,7 +2902,7 @@ declare namespace ts {
2902
2902
  */
2903
2903
  Legacy = 1,
2904
2904
  /**
2905
- * Legacy, but also files with jsx under react-jsx or react-jsxdev and esm mode files under moduleResolution: node12+
2905
+ * Legacy, but also files with jsx under react-jsx or react-jsxdev and esm mode files under moduleResolution: node16+
2906
2906
  */
2907
2907
  Auto = 2,
2908
2908
  /**
@@ -3074,7 +3074,7 @@ declare namespace ts {
3074
3074
  ES2020 = 6,
3075
3075
  ES2022 = 7,
3076
3076
  ESNext = 99,
3077
- Node12 = 100,
3077
+ Node16 = 100,
3078
3078
  NodeNext = 199
3079
3079
  }
3080
3080
  export enum JsxEmit {
@@ -4138,7 +4138,7 @@ declare namespace ts {
4138
4138
  Changed = 1,
4139
4139
  Deleted = 2
4140
4140
  }
4141
- export type FileWatcherCallback = (fileName: string, eventKind: FileWatcherEventKind, modifiedTime?: Date) => void;
4141
+ export type FileWatcherCallback = (fileName: string, eventKind: FileWatcherEventKind) => void;
4142
4142
  export type DirectoryWatcherCallback = (fileName: string) => void;
4143
4143
  export interface System {
4144
4144
  args: string[];
@@ -4818,7 +4818,7 @@ declare namespace ts {
4818
4818
  /**
4819
4819
  * Controls the format the file is detected as - this can be derived from only the path
4820
4820
  * and files on disk, but needs to be done with a module resolution cache in scope to be performant.
4821
- * This is usually `undefined` for compilations that do not have `moduleResolution` values of `node12` or `nodenext`.
4821
+ * This is usually `undefined` for compilations that do not have `moduleResolution` values of `node16` or `nodenext`.
4822
4822
  */
4823
4823
  impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS;
4824
4824
  /**
@@ -6435,7 +6435,18 @@ declare namespace ts {
6435
6435
  argumentIndex: number;
6436
6436
  argumentCount: number;
6437
6437
  }
6438
+ enum CompletionInfoFlags {
6439
+ None = 0,
6440
+ MayIncludeAutoImports = 1,
6441
+ IsImportStatementCompletion = 2,
6442
+ IsContinuation = 4,
6443
+ ResolvedModuleSpecifiers = 8,
6444
+ ResolvedModuleSpecifiersBeyondLimit = 16,
6445
+ MayIncludeMethodSnippets = 32
6446
+ }
6438
6447
  interface CompletionInfo {
6448
+ /** For performance telemetry. */
6449
+ flags?: CompletionInfoFlags;
6439
6450
  /** Not true for all global completions. This will be true if the enclosing scope matches a few syntax kinds. See `isSnippetScope`. */
6440
6451
  isGlobalCompletion: boolean;
6441
6452
  isMemberCompletion: boolean;
@@ -6811,7 +6822,7 @@ declare namespace ts {
6811
6822
  * shape of a the resulting SourceFile. This allows the DocumentRegistry to store
6812
6823
  * multiple copies of the same file for different compilation settings. A minimal
6813
6824
  * resolution cache is needed to fully define a source file's shape when
6814
- * the compilation settings include `module: node12`+, so providing a cache host
6825
+ * the compilation settings include `module: node16`+, so providing a cache host
6815
6826
  * object should be preferred. A common host is a language service `ConfiguredProject`.
6816
6827
  * @param scriptSnapshot Text of the file. Only used if the file was not found
6817
6828
  * in the registry and a new one was created.
@@ -6830,7 +6841,7 @@ declare namespace ts {
6830
6841
  * shape of a the resulting SourceFile. This allows the DocumentRegistry to store
6831
6842
  * multiple copies of the same file for different compilation settings. A minimal
6832
6843
  * resolution cache is needed to fully define a source file's shape when
6833
- * the compilation settings include `module: node12`+, so providing a cache host
6844
+ * the compilation settings include `module: node16`+, so providing a cache host
6834
6845
  * object should be preferred. A common host is a language service `ConfiguredProject`.
6835
6846
  * @param scriptSnapshot Text of the file.
6836
6847
  * @param version Current version of the file.
@@ -8823,6 +8834,7 @@ declare namespace ts.server.protocol {
8823
8834
  body?: CompletionInfo;
8824
8835
  }
8825
8836
  interface CompletionInfo {
8837
+ readonly flags?: number;
8826
8838
  readonly isGlobalCompletion: boolean;
8827
8839
  readonly isMemberCompletion: boolean;
8828
8840
  readonly isNewIdentifierLocation: boolean;