@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.
- package/lib/.gitattributes +1 -0
- package/lib/tsc.js +3035 -1622
- package/lib/tsserver.js +3051 -1749
- package/lib/tsserverlibrary.d.ts +102 -152
- package/lib/tsserverlibrary.js +3037 -1749
- package/lib/typescript.d.ts +100 -149
- package/lib/typescript.js +2974 -1695
- package/lib/typescriptServices.d.ts +100 -149
- package/lib/typescriptServices.js +2974 -1695
- package/lib/typingsInstaller.js +2913 -1638
- package/lib/zh-cn/diagnosticMessages.generated.json +39 -39
- package/package.json +26 -20
- package/.eslintcache +0 -1
- package/CODE_OF_CONDUCT.md +0 -1
- package/CopyrightNotice.txt +0 -15
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -1788,7 +1788,7 @@ declare namespace ts {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
export interface FileReference extends TextRange {
|
|
1790
1790
|
fileName: string;
|
|
1791
|
-
resolutionMode?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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:
|
|
4989
|
-
set(key: string, mode:
|
|
4990
|
-
delete(key: string, mode:
|
|
4991
|
-
has(key: string, mode:
|
|
4992
|
-
forEach(cb: (elem: T, key: string, mode:
|
|
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
|
-
|
|
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?:
|
|
5028
|
-
export function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?:
|
|
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:
|
|
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):
|
|
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?:
|
|
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):
|
|
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?:
|
|
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
|
-
|
|
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:
|
|
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:
|
|
6961
|
+
releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: ResolutionMode): void;
|
|
6953
6962
|
reportStats(): string;
|
|
6954
6963
|
}
|
|
6955
6964
|
type DocumentRegistryBucketKey = string & {
|
|
@@ -10099,10 +10108,9 @@ declare namespace ts.server {
|
|
|
10099
10108
|
readFile(fileName: string): string | undefined;
|
|
10100
10109
|
writeFile(fileName: string, content: string): void;
|
|
10101
10110
|
fileExists(file: string): boolean;
|
|
10102
|
-
resolveModuleNames(moduleNames: string[], containingFile: string,
|
|
10111
|
+
resolveModuleNames(moduleNames: string[], containingFile: string, _reusedNames?: string[], redirectedReference?: ResolvedProjectReference, _options?: CompilerOptions, containingSourceFile?: SourceFile, partialResolutionInfo?: PartialResolutionInfo): ResolvedModuleWithFailedLookupLocations[];
|
|
10103
10112
|
getModuleResolutionCache(): ModuleResolutionCache | undefined;
|
|
10104
|
-
|
|
10105
|
-
resolveTypeReferenceDirectives(typeDirectiveNames: string[] | FileReference[], containingFile: string, redirectedReference?: ResolvedProjectReference, _options?: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
|
|
10113
|
+
resolveTypeReferenceDirectives(typeDirectiveNames: string[] | FileReference[], containingFile: string, redirectedReference?: ResolvedProjectReference, _options?: CompilerOptions, containingFileMode?: ResolutionMode, partialResolutionInfo?: PartialResolutionInfo): ResolvedTypeReferenceDirectiveWithFailedLookupLocations[];
|
|
10106
10114
|
directoryExists(path: string): boolean;
|
|
10107
10115
|
getDirectories(path: string): string[];
|
|
10108
10116
|
log(s: string): void;
|
|
@@ -11780,9 +11788,27 @@ declare namespace ts {
|
|
|
11780
11788
|
}
|
|
11781
11789
|
declare namespace ts {
|
|
11782
11790
|
interface Node {
|
|
11783
|
-
/**
|
|
11784
|
-
|
|
11785
|
-
|
|
11791
|
+
/**
|
|
11792
|
+
* @deprecated `decorators` has been removed from `Node` and merged with `modifiers` on the `Node` subtypes that support them.
|
|
11793
|
+
* Use `ts.canHaveDecorators()` to test whether a `Node` can have decorators.
|
|
11794
|
+
* Use `ts.getDecorators()` to get the decorators of a `Node`.
|
|
11795
|
+
*
|
|
11796
|
+
* For example:
|
|
11797
|
+
* ```ts
|
|
11798
|
+
* const decorators = ts.canHaveDecorators(node) ? ts.getDecorators(node) : undefined;
|
|
11799
|
+
* ```
|
|
11800
|
+
*/
|
|
11801
|
+
readonly decorators?: undefined;
|
|
11802
|
+
/**
|
|
11803
|
+
* @deprecated `modifiers` has been removed from `Node` and moved to the `Node` subtypes that support them.
|
|
11804
|
+
* Use `ts.canHaveModifiers()` to test whether a `Node` can have modifiers.
|
|
11805
|
+
* Use `ts.getModifiers()` to get the modifiers of a `Node`.
|
|
11806
|
+
*
|
|
11807
|
+
* For example:
|
|
11808
|
+
* ```ts
|
|
11809
|
+
* const modifiers = ts.canHaveModifiers(node) ? ts.getModifiers(node) : undefined;
|
|
11810
|
+
* ```
|
|
11811
|
+
*/
|
|
11786
11812
|
readonly modifiers?: NodeArray<ModifierLike> | undefined;
|
|
11787
11813
|
}
|
|
11788
11814
|
interface PropertySignature {
|
|
@@ -11809,231 +11835,155 @@ declare namespace ts {
|
|
|
11809
11835
|
}
|
|
11810
11836
|
interface NodeFactory {
|
|
11811
11837
|
/**
|
|
11812
|
-
* @deprecated Decorators have been combined with modifiers. Callers should
|
|
11813
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11814
|
-
* an overload that removes the parameter entirely.
|
|
11838
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11815
11839
|
*/
|
|
11816
11840
|
createParameterDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken, type?: TypeNode, initializer?: Expression): ParameterDeclaration;
|
|
11817
11841
|
/**
|
|
11818
|
-
* @deprecated Decorators have been combined with modifiers. Callers should
|
|
11819
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11820
|
-
* an overload that removes the parameter entirely.
|
|
11842
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11821
11843
|
*/
|
|
11822
11844
|
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;
|
|
11823
11845
|
/**
|
|
11824
|
-
* @deprecated Decorators have been combined with modifiers. Callers should
|
|
11825
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11826
|
-
* an overload that removes the parameter entirely.
|
|
11846
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11827
11847
|
*/
|
|
11828
11848
|
createPropertyDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, questionOrExclamationToken: QuestionToken | ExclamationToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): PropertyDeclaration;
|
|
11829
11849
|
/**
|
|
11830
|
-
* @deprecated Decorators have been combined with modifiers. Callers should
|
|
11831
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11832
|
-
* an overload that removes the parameter entirely.
|
|
11850
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11833
11851
|
*/
|
|
11834
11852
|
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;
|
|
11835
11853
|
/**
|
|
11836
|
-
* @deprecated Decorators have been combined with modifiers. Callers should
|
|
11837
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11838
|
-
* an overload that removes the parameter entirely.
|
|
11854
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11839
11855
|
*/
|
|
11840
11856
|
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;
|
|
11841
11857
|
/**
|
|
11842
|
-
* @deprecated Decorators have been combined with modifiers. Callers should
|
|
11843
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11844
|
-
* an overload that removes the parameter entirely.
|
|
11858
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11845
11859
|
*/
|
|
11846
11860
|
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;
|
|
11847
11861
|
/**
|
|
11848
|
-
* @deprecated
|
|
11849
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11850
|
-
* an overload that removes the parameter entirely.
|
|
11862
|
+
* @deprecated This node does not support Decorators. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11851
11863
|
*/
|
|
11852
11864
|
createConstructorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
11853
11865
|
/**
|
|
11854
|
-
* @deprecated
|
|
11855
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11856
|
-
* an overload that removes the parameter entirely.
|
|
11866
|
+
* @deprecated This node does not support Decorators. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11857
11867
|
*/
|
|
11858
11868
|
updateConstructorDeclaration(node: ConstructorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], body: Block | undefined): ConstructorDeclaration;
|
|
11859
11869
|
/**
|
|
11860
|
-
* @deprecated Decorators have been combined with modifiers. Callers should
|
|
11861
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11862
|
-
* an overload that removes the parameter entirely.
|
|
11870
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11863
11871
|
*/
|
|
11864
11872
|
createGetAccessorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
11865
11873
|
/**
|
|
11866
|
-
* @deprecated Decorators have been combined with modifiers. Callers should
|
|
11867
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11868
|
-
* an overload that removes the parameter entirely.
|
|
11874
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11869
11875
|
*/
|
|
11870
11876
|
updateGetAccessorDeclaration(node: GetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], type: TypeNode | undefined, body: Block | undefined): GetAccessorDeclaration;
|
|
11871
11877
|
/**
|
|
11872
|
-
* @deprecated Decorators have been combined with modifiers. Callers should
|
|
11873
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11874
|
-
* an overload that removes the parameter entirely.
|
|
11878
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11875
11879
|
*/
|
|
11876
11880
|
createSetAccessorDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
11877
11881
|
/**
|
|
11878
|
-
* @deprecated Decorators have been combined with modifiers. Callers should
|
|
11879
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11880
|
-
* an overload that removes the parameter entirely.
|
|
11882
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11881
11883
|
*/
|
|
11882
11884
|
updateSetAccessorDeclaration(node: SetAccessorDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: PropertyName, parameters: readonly ParameterDeclaration[], body: Block | undefined): SetAccessorDeclaration;
|
|
11883
11885
|
/**
|
|
11884
|
-
* @deprecated Decorators
|
|
11885
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11886
|
-
* an overload that removes the parameter entirely.
|
|
11886
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11887
11887
|
*/
|
|
11888
11888
|
createIndexSignature(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
11889
11889
|
/**
|
|
11890
|
-
* @deprecated Decorators
|
|
11891
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11892
|
-
* an overload that removes the parameter entirely.
|
|
11890
|
+
* @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.
|
|
11893
11891
|
*/
|
|
11894
11892
|
updateIndexSignature(node: IndexSignatureDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, parameters: readonly ParameterDeclaration[], type: TypeNode): IndexSignatureDeclaration;
|
|
11895
11893
|
/**
|
|
11896
|
-
* @deprecated Decorators
|
|
11897
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11898
|
-
* an overload that removes the parameter entirely.
|
|
11894
|
+
* @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.
|
|
11899
11895
|
*/
|
|
11900
11896
|
createClassStaticBlockDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, body: Block): ClassStaticBlockDeclaration;
|
|
11901
11897
|
/**
|
|
11902
|
-
* @deprecated Decorators
|
|
11903
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11904
|
-
* an overload that removes the parameter entirely.
|
|
11898
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11905
11899
|
*/
|
|
11906
11900
|
updateClassStaticBlockDeclaration(node: ClassStaticBlockDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, body: Block): ClassStaticBlockDeclaration;
|
|
11907
11901
|
/**
|
|
11908
|
-
* @deprecated Decorators have been combined with modifiers. Callers should
|
|
11909
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11910
|
-
* an overload that removes the parameter entirely.
|
|
11902
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11911
11903
|
*/
|
|
11912
11904
|
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;
|
|
11913
11905
|
/**
|
|
11914
|
-
* @deprecated Decorators have been combined with modifiers. Callers should
|
|
11915
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11916
|
-
* an overload that removes the parameter entirely.
|
|
11906
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11917
11907
|
*/
|
|
11918
11908
|
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;
|
|
11919
11909
|
/**
|
|
11920
|
-
* @deprecated Decorators
|
|
11921
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11922
|
-
* an overload that removes the parameter entirely.
|
|
11910
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11923
11911
|
*/
|
|
11924
11912
|
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;
|
|
11925
11913
|
/**
|
|
11926
|
-
* @deprecated Decorators
|
|
11927
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11928
|
-
* an overload that removes the parameter entirely.
|
|
11914
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11929
11915
|
*/
|
|
11930
11916
|
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;
|
|
11931
11917
|
/**
|
|
11932
|
-
* @deprecated Decorators have been combined with modifiers. Callers should
|
|
11933
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11934
|
-
* an overload that removes the parameter entirely.
|
|
11918
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11935
11919
|
*/
|
|
11936
11920
|
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;
|
|
11937
11921
|
/**
|
|
11938
|
-
* @deprecated Decorators have been combined with modifiers. Callers should
|
|
11939
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11940
|
-
* an overload that removes the parameter entirely.
|
|
11922
|
+
* @deprecated Decorators have been combined with modifiers. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11941
11923
|
*/
|
|
11942
11924
|
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;
|
|
11943
11925
|
/**
|
|
11944
|
-
* @deprecated Decorators
|
|
11945
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11946
|
-
* an overload that removes the parameter entirely.
|
|
11926
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11947
11927
|
*/
|
|
11948
11928
|
createInterfaceDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, heritageClauses: readonly HeritageClause[] | undefined, members: readonly TypeElement[]): InterfaceDeclaration;
|
|
11949
11929
|
/**
|
|
11950
|
-
* @deprecated Decorators
|
|
11951
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11952
|
-
* an overload that removes the parameter entirely.
|
|
11930
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11953
11931
|
*/
|
|
11954
11932
|
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;
|
|
11955
11933
|
/**
|
|
11956
|
-
* @deprecated Decorators
|
|
11957
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11958
|
-
* an overload that removes the parameter entirely.
|
|
11934
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11959
11935
|
*/
|
|
11960
11936
|
createTypeAliasDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
11961
11937
|
/**
|
|
11962
|
-
* @deprecated Decorators
|
|
11963
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11964
|
-
* an overload that removes the parameter entirely.
|
|
11938
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11965
11939
|
*/
|
|
11966
11940
|
updateTypeAliasDeclaration(node: TypeAliasDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, typeParameters: readonly TypeParameterDeclaration[] | undefined, type: TypeNode): TypeAliasDeclaration;
|
|
11967
11941
|
/**
|
|
11968
|
-
* @deprecated Decorators
|
|
11969
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11970
|
-
* an overload that removes the parameter entirely.
|
|
11942
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11971
11943
|
*/
|
|
11972
11944
|
createEnumDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: string | Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
11973
11945
|
/**
|
|
11974
|
-
* @deprecated Decorators
|
|
11975
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11976
|
-
* an overload that removes the parameter entirely.
|
|
11946
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11977
11947
|
*/
|
|
11978
11948
|
updateEnumDeclaration(node: EnumDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: Identifier, members: readonly EnumMember[]): EnumDeclaration;
|
|
11979
11949
|
/**
|
|
11980
|
-
* @deprecated Decorators
|
|
11981
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11982
|
-
* an overload that removes the parameter entirely.
|
|
11950
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11983
11951
|
*/
|
|
11984
11952
|
createModuleDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined, flags?: NodeFlags): ModuleDeclaration;
|
|
11985
11953
|
/**
|
|
11986
|
-
* @deprecated Decorators
|
|
11987
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11988
|
-
* an overload that removes the parameter entirely.
|
|
11954
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11989
11955
|
*/
|
|
11990
11956
|
updateModuleDeclaration(node: ModuleDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, name: ModuleName, body: ModuleBody | undefined): ModuleDeclaration;
|
|
11991
11957
|
/**
|
|
11992
|
-
* @deprecated Decorators
|
|
11993
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
11994
|
-
* an overload that removes the parameter entirely.
|
|
11958
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
11995
11959
|
*/
|
|
11996
11960
|
createImportEqualsDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
11997
11961
|
/**
|
|
11998
|
-
* @deprecated Decorators
|
|
11999
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
12000
|
-
* an overload that removes the parameter entirely.
|
|
11962
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
12001
11963
|
*/
|
|
12002
11964
|
updateImportEqualsDeclaration(node: ImportEqualsDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
12003
11965
|
/**
|
|
12004
|
-
* @deprecated Decorators
|
|
12005
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
12006
|
-
* an overload that removes the parameter entirely.
|
|
11966
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
12007
11967
|
*/
|
|
12008
11968
|
createImportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause): ImportDeclaration;
|
|
12009
11969
|
/**
|
|
12010
|
-
* @deprecated Decorators
|
|
12011
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
12012
|
-
* an overload that removes the parameter entirely.
|
|
11970
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
12013
11971
|
*/
|
|
12014
11972
|
updateImportDeclaration(node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
12015
11973
|
/**
|
|
12016
|
-
* @deprecated Decorators
|
|
12017
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
12018
|
-
* an overload that removes the parameter entirely.
|
|
11974
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
12019
11975
|
*/
|
|
12020
11976
|
createExportAssignment(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
12021
11977
|
/**
|
|
12022
|
-
* @deprecated Decorators
|
|
12023
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
12024
|
-
* an overload that removes the parameter entirely.
|
|
11978
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
12025
11979
|
*/
|
|
12026
11980
|
updateExportAssignment(node: ExportAssignment, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
|
|
12027
11981
|
/**
|
|
12028
|
-
* @deprecated Decorators
|
|
12029
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
12030
|
-
* an overload that removes the parameter entirely.
|
|
11982
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
12031
11983
|
*/
|
|
12032
11984
|
createExportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, assertClause?: AssertClause): ExportDeclaration;
|
|
12033
11985
|
/**
|
|
12034
|
-
* @deprecated Decorators
|
|
12035
|
-
* `null` to the `decorators` parameter so that a future update can introduce
|
|
12036
|
-
* an overload that removes the parameter entirely.
|
|
11986
|
+
* @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter.
|
|
12037
11987
|
*/
|
|
12038
11988
|
updateExportDeclaration(node: ExportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined): ExportDeclaration;
|
|
12039
11989
|
}
|