@typescript-deploys/pr-build 4.9.0-pr-50366-2 → 4.9.0-pr-50247-13

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.
@@ -1788,7 +1788,7 @@ declare namespace ts {
1788
1788
  }
1789
1789
  export interface FileReference extends TextRange {
1790
1790
  fileName: string;
1791
- resolutionMode?: SourceFile["impliedNodeFormat"];
1791
+ resolutionMode?: ResolutionMode;
1792
1792
  }
1793
1793
  export interface CheckJsDirective extends TextRange {
1794
1794
  enabled: boolean;
@@ -2103,7 +2103,7 @@ declare namespace ts {
2103
2103
  * of `node`). If so, this field will be unset and source files will be considered to be
2104
2104
  * CommonJS-output-format by the node module transformer and type checker, regardless of extension or context.
2105
2105
  */
2106
- impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS;
2106
+ impliedNodeFormat?: ResolutionMode;
2107
2107
  }
2108
2108
  export interface Bundle extends Node {
2109
2109
  readonly kind: SyntaxKind.Bundle;
@@ -3048,6 +3048,7 @@ declare namespace ts {
3048
3048
  jsxImportSource?: string;
3049
3049
  composite?: boolean;
3050
3050
  incremental?: boolean;
3051
+ cacheResolutions?: boolean;
3051
3052
  tsBuildInfoFile?: string;
3052
3053
  removeComments?: boolean;
3053
3054
  rootDir?: string;
@@ -3273,7 +3274,7 @@ declare namespace ts {
3273
3274
  readonly resolvedModule: ResolvedModuleFull | undefined;
3274
3275
  }
3275
3276
  export interface ResolvedTypeReferenceDirective {
3276
- primary: boolean;
3277
+ primary: boolean | undefined;
3277
3278
  resolvedFileName: string | undefined;
3278
3279
  packageId?: PackageId;
3279
3280
  /** True if `resolvedFileName` comes from `node_modules`. */
@@ -3283,6 +3284,13 @@ declare namespace ts {
3283
3284
  readonly resolvedTypeReferenceDirective: ResolvedTypeReferenceDirective | undefined;
3284
3285
  readonly failedLookupLocations: string[];
3285
3286
  }
3287
+ export interface PartialResolutionInfo {
3288
+ reusedNames: {
3289
+ name: string;
3290
+ mode: ResolutionMode;
3291
+ }[] | undefined;
3292
+ namesIndex: readonly number[];
3293
+ }
3286
3294
  export interface CompilerHost extends ModuleResolutionHost {
3287
3295
  getSourceFile(fileName: string, languageVersionOrOptions: ScriptTarget | CreateSourceFileOptions, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined;
3288
3296
  getSourceFileByPath?(fileName: string, path: Path, languageVersionOrOptions: ScriptTarget | CreateSourceFileOptions, onError?: (message: string) => void, shouldCreateNewSourceFile?: boolean): SourceFile | undefined;
@@ -3295,7 +3303,7 @@ declare namespace ts {
3295
3303
  useCaseSensitiveFileNames(): boolean;
3296
3304
  getNewLine(): string;
3297
3305
  readDirectory?(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): string[];
3298
- resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
3306
+ resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile, partialResolutionInfo?: PartialResolutionInfo): ResolvedModuleWithFailedLookupLocations[] | (ResolvedModule | undefined)[];
3299
3307
  /**
3300
3308
  * Returns the module resolution cache used by a provided `resolveModuleNames` implementation so that any non-name module resolution operations (eg, package.json lookup) can reuse it
3301
3309
  */
@@ -3303,7 +3311,7 @@ declare namespace ts {
3303
3311
  /**
3304
3312
  * This method is a companion for 'resolveModuleNames' and is used to resolve 'types' references to actual type declaration files
3305
3313
  */
3306
- resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
3314
+ resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: ResolutionMode, partialResolutionInfo?: PartialResolutionInfo): ResolvedTypeReferenceDirectiveWithFailedLookupLocations[] | (ResolvedTypeReferenceDirective | undefined)[];
3307
3315
  getEnvironmentVariable?(name: string): string | undefined;
3308
3316
  createHash?(data: string): string;
3309
3317
  getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined;
@@ -4834,6 +4842,8 @@ declare namespace ts {
4834
4842
  }
4835
4843
  declare namespace ts {
4836
4844
  function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T;
4845
+ function canHaveModifiers(node: Node): node is HasModifiers;
4846
+ function canHaveDecorators(node: Node): node is HasDecorators;
4837
4847
  }
4838
4848
  declare namespace ts {
4839
4849
  /**
@@ -4857,7 +4867,7 @@ declare namespace ts {
4857
4867
  * and files on disk, but needs to be done with a module resolution cache in scope to be performant.
4858
4868
  * This is usually `undefined` for compilations that do not have `moduleResolution` values of `node16` or `nodenext`.
4859
4869
  */
4860
- impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS;
4870
+ impliedNodeFormat?: ResolutionMode;
4861
4871
  /**
4862
4872
  * Controls how module-y-ness is set for the given file. Usually the result of calling
4863
4873
  * `getSetExternalModuleIndicator` on a valid `CompilerOptions` object. If not present, the default
@@ -4972,7 +4982,7 @@ declare namespace ts {
4972
4982
  * This is possible in case if resolution is performed for directives specified via 'types' parameter. In this case initial path for secondary lookups
4973
4983
  * is assumed to be the same as root directory of the project.
4974
4984
  */
4975
- export function resolveTypeReferenceDirective(typeReferenceDirectiveName: string, containingFile: string | undefined, options: CompilerOptions, host: ModuleResolutionHost, redirectedReference?: ResolvedProjectReference, cache?: TypeReferenceDirectiveResolutionCache, resolutionMode?: SourceFile["impliedNodeFormat"]): ResolvedTypeReferenceDirectiveWithFailedLookupLocations;
4985
+ export function resolveTypeReferenceDirective(typeReferenceDirectiveName: string, containingFile: string | undefined, options: CompilerOptions, host: ModuleResolutionHost, redirectedReference?: ResolvedProjectReference, cache?: TypeReferenceDirectiveResolutionCache, resolutionMode?: ResolutionMode): ResolvedTypeReferenceDirectiveWithFailedLookupLocations;
4976
4986
  /**
4977
4987
  * Given a set of options, returns the set of type directive names
4978
4988
  * that should be included for this program automatically.
@@ -4984,12 +4994,13 @@ declare namespace ts {
4984
4994
  export function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[];
4985
4995
  export interface TypeReferenceDirectiveResolutionCache extends PerDirectoryResolutionCache<ResolvedTypeReferenceDirectiveWithFailedLookupLocations>, PackageJsonInfoCache {
4986
4996
  }
4997
+ export type ResolutionMode = ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
4987
4998
  export interface ModeAwareCache<T> {
4988
- get(key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined): T | undefined;
4989
- set(key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined, value: T): this;
4990
- delete(key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined): this;
4991
- has(key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined): boolean;
4992
- forEach(cb: (elem: T, key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined) => void): void;
4999
+ get(key: string, mode: ResolutionMode): T | undefined;
5000
+ set(key: string, mode: ResolutionMode, value: T): this;
5001
+ delete(key: string, mode: ResolutionMode): this;
5002
+ has(key: string, mode: ResolutionMode): boolean;
5003
+ forEach(cb: (elem: T, key: string, mode: ResolutionMode) => void): void;
4993
5004
  size(): number;
4994
5005
  }
4995
5006
  /**
@@ -4997,6 +5008,7 @@ declare namespace ts {
4997
5008
  * This assumes that any module id will have the same resolution for sibling files located in the same folder.
4998
5009
  */
4999
5010
  export interface PerDirectoryResolutionCache<T> {
5011
+ getFromCache(directoryName: string, name: string, mode: ResolutionMode, redirectedReference?: ResolvedProjectReference): T | undefined;
5000
5012
  getOrCreateCacheForDirectory(directoryName: string, redirectedReference?: ResolvedProjectReference): ModeAwareCache<T>;
5001
5013
  clear(): void;
5002
5014
  /**
@@ -5013,7 +5025,8 @@ declare namespace ts {
5013
5025
  * We support only non-relative module names because resolution of relative module names is usually more deterministic and thus less expensive.
5014
5026
  */
5015
5027
  export interface NonRelativeModuleNameResolutionCache extends PackageJsonInfoCache {
5016
- getOrCreateCacheForModuleName(nonRelativeModuleName: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined, redirectedReference?: ResolvedProjectReference): PerModuleNameCache;
5028
+ getFromModuleNameCache(directory: string, nonRelativeModuleName: string, mode: ResolutionMode, redirectedReference: ResolvedProjectReference | undefined): ResolvedModuleWithFailedLookupLocations | undefined;
5029
+ getOrCreateCacheForModuleName(nonRelativeModuleName: string, mode: ResolutionMode, redirectedReference?: ResolvedProjectReference): PerModuleNameCache;
5017
5030
  }
5018
5031
  export interface PackageJsonInfoCache {
5019
5032
  clear(): void;
@@ -5024,8 +5037,8 @@ declare namespace ts {
5024
5037
  }
5025
5038
  export function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions): ModuleResolutionCache;
5026
5039
  export function createTypeReferenceDirectiveResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): TypeReferenceDirectiveResolutionCache;
5027
- export function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ModuleKind.CommonJS | ModuleKind.ESNext): ResolvedModuleWithFailedLookupLocations | undefined;
5028
- export function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?: ModuleKind.CommonJS | ModuleKind.ESNext): ResolvedModuleWithFailedLookupLocations;
5040
+ export function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations | undefined;
5041
+ export function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations;
5029
5042
  export function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
5030
5043
  export function classicNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: NonRelativeModuleNameResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
5031
5044
  export {};
@@ -5139,7 +5152,7 @@ declare namespace ts {
5139
5152
  * Calculates the resulting resolution mode for some reference in some file - this is generally the explicitly
5140
5153
  * provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.
5141
5154
  */
5142
- export function getModeForFileReference(ref: FileReference | string, containingFileMode: SourceFile["impliedNodeFormat"]): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
5155
+ export function getModeForFileReference(ref: FileReference | string, containingFileMode: ResolutionMode): ResolutionMode;
5143
5156
  /**
5144
5157
  * Calculates the final resolution mode for an import at some index within a file's imports list. This is generally the explicitly
5145
5158
  * defined mode of the import if provided, or, if not, the mode of the containing file (with some exceptions: import=require is always commonjs, dynamic import is always esm).
@@ -5147,7 +5160,7 @@ declare namespace ts {
5147
5160
  * @param file File to fetch the resolution mode within
5148
5161
  * @param index Index into the file's complete resolution list to get the resolution of - this is a concatenation of the file's imports and module augmentations
5149
5162
  */
5150
- export function getModeForResolutionAtIndex(file: SourceFile, index: number): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
5163
+ export function getModeForResolutionAtIndex(file: SourceFile, index: number): ResolutionMode;
5151
5164
  /**
5152
5165
  * Calculates the final resolution mode for a given module reference node. This is generally the explicitly provided resolution mode, if
5153
5166
  * one exists, or the mode of the containing source file. (Excepting import=require, which is always commonjs, and dynamic import, which is always esm).
@@ -5158,7 +5171,7 @@ declare namespace ts {
5158
5171
  * @returns The final resolution mode of the import
5159
5172
  */
5160
5173
  export function getModeForUsageLocation(file: {
5161
- impliedNodeFormat?: SourceFile["impliedNodeFormat"];
5174
+ impliedNodeFormat?: ResolutionMode;
5162
5175
  }, usage: StringLiteralLike): ModuleKind.CommonJS | ModuleKind.ESNext | undefined;
5163
5176
  export function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[];
5164
5177
  /**
@@ -5171,7 +5184,7 @@ declare namespace ts {
5171
5184
  * @param options The compiler options to perform the analysis under - relevant options are `moduleResolution` and `traceResolution`
5172
5185
  * @returns `undefined` if the path has no relevant implied format, `ModuleKind.ESNext` for esm format, and `ModuleKind.CommonJS` for cjs format
5173
5186
  */
5174
- export function getImpliedNodeFormatForFile(fileName: Path, packageJsonInfoCache: PackageJsonInfoCache | undefined, host: ModuleResolutionHost, options: CompilerOptions): ModuleKind.ESNext | ModuleKind.CommonJS | undefined;
5187
+ export function getImpliedNodeFormatForFile(fileName: Path, packageJsonInfoCache: PackageJsonInfoCache | undefined, host: ModuleResolutionHost, options: CompilerOptions): ResolutionMode;
5175
5188
  /**
5176
5189
  * Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions'
5177
5190
  * that represent a compilation unit.
@@ -5226,10 +5239,6 @@ declare namespace ts {
5226
5239
  affected: SourceFile | Program;
5227
5240
  } | undefined;
5228
5241
  interface BuilderProgramHost {
5229
- /**
5230
- * return true if file names are treated with case sensitivity
5231
- */
5232
- useCaseSensitiveFileNames(): boolean;
5233
5242
  /**
5234
5243
  * If provided this would be used this hash instead of actual file shape text for detecting changes
5235
5244
  */
@@ -5416,9 +5425,9 @@ declare namespace ts {
5416
5425
  /** If provided is used to get the environment variable */
5417
5426
  getEnvironmentVariable?(name: string): string | undefined;
5418
5427
  /** If provided, used to resolve the module names, otherwise typescript's default module resolution */
5419
- resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
5428
+ resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile, partialResolutionInfo?: PartialResolutionInfo): ResolvedModuleWithFailedLookupLocations[] | (ResolvedModule | undefined)[];
5420
5429
  /** If provided, used to resolve type reference directives, otherwise typescript's default resolution */
5421
- resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
5430
+ resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: ResolutionMode, partialResolutionInfo?: PartialResolutionInfo): ResolvedTypeReferenceDirectiveWithFailedLookupLocations[] | (ResolvedTypeReferenceDirective | undefined)[];
5422
5431
  /**
5423
5432
  * Returns the module resolution cache used by a provided `resolveModuleNames` implementation so that any non-name module resolution operations (eg, package.json lookup) can reuse it
5424
5433
  */
@@ -5430,7 +5439,7 @@ declare namespace ts {
5430
5439
  /** If provided, use this method to get parsed command lines for referenced projects */
5431
5440
  getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined;
5432
5441
  /** If provided, callback to invoke after every new program creation */
5433
- afterProgramCreate?(program: T): void;
5442
+ afterProgramCreate?(program: T, host?: CompilerHost): void;
5434
5443
  }
5435
5444
  /**
5436
5445
  * Host to create watch with root files and options
@@ -5498,6 +5507,7 @@ declare namespace ts {
5498
5507
  force?: boolean;
5499
5508
  verbose?: boolean;
5500
5509
  incremental?: boolean;
5510
+ cacheResolutions?: boolean;
5501
5511
  assumeChangesOnlyAffectDirectDependencies?: boolean;
5502
5512
  traceResolution?: boolean;
5503
5513
  [option: string]: CompilerOptionsValue | undefined;
@@ -5521,7 +5531,7 @@ declare namespace ts {
5521
5531
  getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined;
5522
5532
  reportDiagnostic: DiagnosticReporter;
5523
5533
  reportSolutionBuilderStatus: DiagnosticReporter;
5524
- afterProgramEmitAndDiagnostics?(program: T): void;
5534
+ afterProgramEmitAndDiagnostics?(program: T, host?: CompilerHost): void;
5525
5535
  }
5526
5536
  interface SolutionBuilderHost<T extends BuilderProgram> extends SolutionBuilderHostBase<T> {
5527
5537
  reportErrorSummary?: ReportEmitErrorSummary;
@@ -5816,9 +5826,8 @@ declare namespace ts {
5816
5826
  readFile(path: string, encoding?: string): string | undefined;
5817
5827
  fileExists(path: string): boolean;
5818
5828
  getTypeRootsVersion?(): number;
5819
- resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
5820
- getResolvedModuleWithFailedLookupLocationsFromCache?(modulename: string, containingFile: string, resolutionMode?: ModuleKind.CommonJS | ModuleKind.ESNext): ResolvedModuleWithFailedLookupLocations | undefined;
5821
- resolveTypeReferenceDirectives?(typeDirectiveNames: string[] | FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
5829
+ resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile, partialResolutionInfo?: PartialResolutionInfo): ResolvedModuleWithFailedLookupLocations[] | (ResolvedModule | undefined)[];
5830
+ resolveTypeReferenceDirectives?(typeDirectiveNames: string[] | FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: ResolutionMode, partialResolutionInfo?: PartialResolutionInfo): ResolvedTypeReferenceDirectiveWithFailedLookupLocations[] | (ResolvedTypeReferenceDirective | undefined)[];
5822
5831
  getDirectories?(directoryName: string): string[];
5823
5832
  /**
5824
5833
  * Gets a set of custom transformers to use during emit.
@@ -6945,11 +6954,11 @@ declare namespace ts {
6945
6954
  * @param scriptKind The script kind of the file to be released
6946
6955
  * @param impliedNodeFormat The implied source file format of the file to be released
6947
6956
  */
6948
- releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind, impliedNodeFormat: SourceFile["impliedNodeFormat"]): void;
6957
+ releaseDocument(fileName: string, compilationSettings: CompilerOptions, scriptKind: ScriptKind, impliedNodeFormat: ResolutionMode): void;
6949
6958
  /**
6950
6959
  * @deprecated pass scriptKind for and impliedNodeFormat correctness */
6951
6960
  releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind): void;
6952
- releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: SourceFile["impliedNodeFormat"]): void;
6961
+ releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: ResolutionMode): void;
6953
6962
  reportStats(): string;
6954
6963
  }
6955
6964
  type DocumentRegistryBucketKey = string & {
@@ -7912,9 +7921,27 @@ declare namespace ts {
7912
7921
  }
7913
7922
  declare namespace ts {
7914
7923
  interface Node {
7915
- /** @deprecated `decorators` has been merged with `modifiers` on the declarations that support decorators. */
7916
- readonly decorators?: NodeArray<Decorator> | undefined;
7917
- /** @deprecated `modifiers` has been removed from `Node` and moved to the specific `Node` subtypes that support them. */
7924
+ /**
7925
+ * @deprecated `decorators` has been removed from `Node` and merged with `modifiers` on the `Node` subtypes that support them.
7926
+ * Use `ts.canHaveDecorators()` to test whether a `Node` can have decorators.
7927
+ * Use `ts.getDecorators()` to get the decorators of a `Node`.
7928
+ *
7929
+ * For example:
7930
+ * ```ts
7931
+ * const decorators = ts.canHaveDecorators(node) ? ts.getDecorators(node) : undefined;
7932
+ * ```
7933
+ */
7934
+ readonly decorators?: undefined;
7935
+ /**
7936
+ * @deprecated `modifiers` has been removed from `Node` and moved to the `Node` subtypes that support them.
7937
+ * Use `ts.canHaveModifiers()` to test whether a `Node` can have modifiers.
7938
+ * Use `ts.getModifiers()` to get the modifiers of a `Node`.
7939
+ *
7940
+ * For example:
7941
+ * ```ts
7942
+ * const modifiers = ts.canHaveModifiers(node) ? ts.getModifiers(node) : undefined;
7943
+ * ```
7944
+ */
7918
7945
  readonly modifiers?: NodeArray<ModifierLike> | undefined;
7919
7946
  }
7920
7947
  interface PropertySignature {
@@ -7941,231 +7968,155 @@ declare namespace ts {
7941
7968
  }
7942
7969
  interface NodeFactory {
7943
7970
  /**
7944
- * @deprecated Decorators have been combined with modifiers. Callers should pass
7945
- * `null` to the `decorators` parameter so that a future update can introduce
7946
- * an overload that removes the parameter entirely.
7971
+ * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
7947
7972
  */
7948
7973
  createParameterDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken, type?: TypeNode, initializer?: Expression): ParameterDeclaration;
7949
7974
  /**
7950
- * @deprecated Decorators have been combined with modifiers. Callers should pass
7951
- * `null` to the `decorators` parameter so that a future update can introduce
7952
- * an overload that removes the parameter entirely.
7975
+ * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
7953
7976
  */
7954
7977
  updateParameterDeclaration(node: ParameterDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): ParameterDeclaration;
7955
7978
  /**
7956
- * @deprecated Decorators have been combined with modifiers. Callers should pass
7957
- * `null` to the `decorators` parameter so that a future update can introduce
7958
- * an overload that removes the parameter entirely.
7979
+ * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
7959
7980
  */
7960
7981
  createPropertyDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
7961
7982
  /**
7962
- * @deprecated Decorators have been combined with modifiers. Callers should pass
7963
- * `null` to the `decorators` parameter so that a future update can introduce
7964
- * an overload that removes the parameter entirely.
7983
+ * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
7965
7984
  */
7966
7985
  updatePropertyDeclaration(node: PropertyDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
7967
7986
  /**
7968
- * @deprecated Decorators have been combined with modifiers. Callers should pass
7969
- * `null` to the `decorators` parameter so that a future update can introduce
7970
- * an overload that removes the parameter entirely.
7987
+ * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
7971
7988
  */
7972
7989
  createMethodDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, asteriskToken: AsteriskToken | undefined, name: string | PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): MethodDeclaration;
7973
7990
  /**
7974
- * @deprecated Decorators have been combined with modifiers. Callers should pass
7975
- * `null` to the `decorators` parameter so that a future update can introduce
7976
- * an overload that removes the parameter entirely.
7991
+ * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
7977
7992
  */
7978
7993
  updateMethodDeclaration(node: MethodDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, asteriskToken: AsteriskToken | undefined, name: PropertyName, questionToken: QuestionToken | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): MethodDeclaration;
7979
7994
  /**
7980
- * @deprecated Decorators have been combined with modifiers. Callers should pass
7981
- * `null` to the `decorators` parameter so that a future update can introduce
7982
- * an overload that removes the parameter entirely.
7995
+ * @deprecated This node does not support Decorators. Callers should use an overload that does not accept a `decorators` parameter.
7983
7996
  */
7984
7997
  createConstructorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
7985
7998
  /**
7986
- * @deprecated Decorators have been combined with modifiers. Callers should pass
7987
- * `null` to the `decorators` parameter so that a future update can introduce
7988
- * an overload that removes the parameter entirely.
7999
+ * @deprecated This node does not support Decorators. Callers should use an overload that does not accept a `decorators` parameter.
7989
8000
  */
7990
8001
  updateConstructorDeclaration(node: ConstructorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
7991
8002
  /**
7992
- * @deprecated Decorators have been combined with modifiers. Callers should pass
7993
- * `null` to the `decorators` parameter so that a future update can introduce
7994
- * an overload that removes the parameter entirely.
8003
+ * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
7995
8004
  */
7996
8005
  createGetAccessorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
7997
8006
  /**
7998
- * @deprecated Decorators have been combined with modifiers. Callers should pass
7999
- * `null` to the `decorators` parameter so that a future update can introduce
8000
- * an overload that removes the parameter entirely.
8007
+ * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
8001
8008
  */
8002
8009
  updateGetAccessorDeclaration(node: GetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
8003
8010
  /**
8004
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8005
- * `null` to the `decorators` parameter so that a future update can introduce
8006
- * an overload that removes the parameter entirely.
8011
+ * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
8007
8012
  */
8008
8013
  createSetAccessorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
8009
8014
  /**
8010
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8011
- * `null` to the `decorators` parameter so that a future update can introduce
8012
- * an overload that removes the parameter entirely.
8015
+ * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
8013
8016
  */
8014
8017
  updateSetAccessorDeclaration(node: SetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
8015
8018
  /**
8016
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8017
- * `null` to the `decorators` parameter so that a future update can introduce
8018
- * an overload that removes the parameter entirely.
8019
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8019
8020
  */
8020
8021
  createIndexSignature(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
8021
8022
  /**
8022
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8023
- * `null` to the `decorators` parameter so that a future update can introduce
8024
- * an overload that removes the parameter entirely.
8023
+ * @deprecated Decorators and modifiers are no longer supported for this function. Callers should use an overload that does not accept the `decorators` and `modifiers` parameters.
8025
8024
  */
8026
8025
  updateIndexSignature(node: IndexSignatureDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
8027
8026
  /**
8028
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8029
- * `null` to the `decorators` parameter so that a future update can introduce
8030
- * an overload that removes the parameter entirely.
8027
+ * @deprecated Decorators and modifiers are no longer supported for this function. Callers should use an overload that does not accept the `decorators` and `modifiers` parameters.
8031
8028
  */
8032
8029
  createClassStaticBlockDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, body: Block): ClassStaticBlockDeclaration;
8033
8030
  /**
8034
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8035
- * `null` to the `decorators` parameter so that a future update can introduce
8036
- * an overload that removes the parameter entirely.
8031
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8037
8032
  */
8038
8033
  updateClassStaticBlockDeclaration(node: ClassStaticBlockDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, body: Block): ClassStaticBlockDeclaration;
8039
8034
  /**
8040
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8041
- * `null` to the `decorators` parameter so that a future update can introduce
8042
- * an overload that removes the parameter entirely.
8035
+ * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
8043
8036
  */
8044
8037
  createClassExpression(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassExpression;
8045
8038
  /**
8046
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8047
- * `null` to the `decorators` parameter so that a future update can introduce
8048
- * an overload that removes the parameter entirely.
8039
+ * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
8049
8040
  */
8050
8041
  updateClassExpression(node: ClassExpression, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassExpression;
8051
8042
  /**
8052
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8053
- * `null` to the `decorators` parameter so that a future update can introduce
8054
- * an overload that removes the parameter entirely.
8043
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8055
8044
  */
8056
8045
  createFunctionDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, asteriskToken: AsteriskToken | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration;
8057
8046
  /**
8058
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8059
- * `null` to the `decorators` parameter so that a future update can introduce
8060
- * an overload that removes the parameter entirely.
8047
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8061
8048
  */
8062
8049
  updateFunctionDeclaration(node: FunctionDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, asteriskToken: AsteriskToken | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): FunctionDeclaration;
8063
8050
  /**
8064
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8065
- * `null` to the `decorators` parameter so that a future update can introduce
8066
- * an overload that removes the parameter entirely.
8051
+ * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
8067
8052
  */
8068
8053
  createClassDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
8069
8054
  /**
8070
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8071
- * `null` to the `decorators` parameter so that a future update can introduce
8072
- * an overload that removes the parameter entirely.
8055
+ * @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
8073
8056
  */
8074
8057
  updateClassDeclaration(node: ClassDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier | undefined, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly ClassElement[]): ClassDeclaration;
8075
8058
  /**
8076
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8077
- * `null` to the `decorators` parameter so that a future update can introduce
8078
- * an overload that removes the parameter entirely.
8059
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8079
8060
  */
8080
8061
  createInterfaceDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
8081
8062
  /**
8082
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8083
- * `null` to the `decorators` parameter so that a future update can introduce
8084
- * an overload that removes the parameter entirely.
8063
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8085
8064
  */
8086
8065
  updateInterfaceDeclaration(node: InterfaceDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
8087
8066
  /**
8088
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8089
- * `null` to the `decorators` parameter so that a future update can introduce
8090
- * an overload that removes the parameter entirely.
8067
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8091
8068
  */
8092
8069
  createTypeAliasDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
8093
8070
  /**
8094
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8095
- * `null` to the `decorators` parameter so that a future update can introduce
8096
- * an overload that removes the parameter entirely.
8071
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8097
8072
  */
8098
8073
  updateTypeAliasDeclaration(node: TypeAliasDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
8099
8074
  /**
8100
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8101
- * `null` to the `decorators` parameter so that a future update can introduce
8102
- * an overload that removes the parameter entirely.
8075
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8103
8076
  */
8104
8077
  createEnumDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, members: readonly EnumMember[]): EnumDeclaration;
8105
8078
  /**
8106
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8107
- * `null` to the `decorators` parameter so that a future update can introduce
8108
- * an overload that removes the parameter entirely.
8079
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8109
8080
  */
8110
8081
  updateEnumDeclaration(node: EnumDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, members: readonly EnumMember[]): EnumDeclaration;
8111
8082
  /**
8112
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8113
- * `null` to the `decorators` parameter so that a future update can introduce
8114
- * an overload that removes the parameter entirely.
8083
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8115
8084
  */
8116
8085
  createModuleDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags): ModuleDeclaration;
8117
8086
  /**
8118
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8119
- * `null` to the `decorators` parameter so that a future update can introduce
8120
- * an overload that removes the parameter entirely.
8087
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8121
8088
  */
8122
8089
  updateModuleDeclaration(node: ModuleDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration;
8123
8090
  /**
8124
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8125
- * `null` to the `decorators` parameter so that a future update can introduce
8126
- * an overload that removes the parameter entirely.
8091
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8127
8092
  */
8128
8093
  createImportEqualsDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
8129
8094
  /**
8130
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8131
- * `null` to the `decorators` parameter so that a future update can introduce
8132
- * an overload that removes the parameter entirely.
8095
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8133
8096
  */
8134
8097
  updateImportEqualsDeclaration(node: ImportEqualsDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
8135
8098
  /**
8136
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8137
- * `null` to the `decorators` parameter so that a future update can introduce
8138
- * an overload that removes the parameter entirely.
8099
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8139
8100
  */
8140
8101
  createImportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause): ImportDeclaration;
8141
8102
  /**
8142
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8143
- * `null` to the `decorators` parameter so that a future update can introduce
8144
- * an overload that removes the parameter entirely.
8103
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8145
8104
  */
8146
8105
  updateImportDeclaration(node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
8147
8106
  /**
8148
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8149
- * `null` to the `decorators` parameter so that a future update can introduce
8150
- * an overload that removes the parameter entirely.
8107
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8151
8108
  */
8152
8109
  createExportAssignment(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
8153
8110
  /**
8154
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8155
- * `null` to the `decorators` parameter so that a future update can introduce
8156
- * an overload that removes the parameter entirely.
8111
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8157
8112
  */
8158
8113
  updateExportAssignment(node: ExportAssignment, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
8159
8114
  /**
8160
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8161
- * `null` to the `decorators` parameter so that a future update can introduce
8162
- * an overload that removes the parameter entirely.
8115
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8163
8116
  */
8164
8117
  createExportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, assertClause?: AssertClause): ExportDeclaration;
8165
8118
  /**
8166
- * @deprecated Decorators have been combined with modifiers. Callers should pass
8167
- * `null` to the `decorators` parameter so that a future update can introduce
8168
- * an overload that removes the parameter entirely.
8119
+ * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
8169
8120
  */
8170
8121
  updateExportDeclaration(node: ExportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined): ExportDeclaration;
8171
8122
  }