@vue/compiler-sfc 3.6.0-beta.9 → 3.6.0-rc.10
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/dist/compiler-sfc.cjs.js +2719 -1833
- package/dist/compiler-sfc.d.ts +565 -465
- package/dist/compiler-sfc.esm-browser.js +6759 -3659
- package/package.json +13 -13
package/dist/compiler-sfc.d.ts
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import * as _babel_types0 from "@babel/types";
|
|
2
|
-
import { CallExpression as CallExpression$1, Expression as Expression$1, Node as Node$1, ObjectPattern, Program as Program$1, Statement as Statement$1, TSCallSignatureDeclaration, TSFunctionType, TSMethodSignature, TSModuleDeclaration, TSPropertySignature, TSType } from "@babel/types";
|
|
3
1
|
import { BaseCodegenResult, BindingMetadata, BindingMetadata as BindingMetadata$1, CompilerError, CompilerError as CompilerError$1, CompilerOptions as CompilerOptions$1, CompilerOptions as CompilerOptions$2, ParserOptions, RawSourceMap, RootNode, SourceLocation, extractIdentifiers, generateCodeFrame, isInDestructureAssignment, isStaticProperty, walkIdentifiers } from "@vue/compiler-core";
|
|
4
2
|
import { ParserPlugin, parse as babelParse } from "@babel/parser";
|
|
3
|
+
import "source-map-js";
|
|
4
|
+
import "lru-cache";
|
|
5
5
|
import { LazyResult, Result } from "postcss";
|
|
6
6
|
import MagicString, { default as MagicString$1 } from "magic-string";
|
|
7
|
+
import { CallExpression as CallExpression$1, Expression as Expression$1, Node as Node$1, ObjectPattern, Program as Program$1, Statement as Statement$1, TSCallSignatureDeclaration, TSFunctionType, TSMethodSignature, TSModuleDeclaration, TSPropertySignature, TSType } from "@babel/types";
|
|
8
|
+
import "@vue/shared";
|
|
7
9
|
//#region temp/packages/compiler-sfc/src/template/transformAssetUrl.d.ts
|
|
8
10
|
export interface AssetURLTagConfig {
|
|
9
11
|
[name: string]: string[];
|
|
10
12
|
}
|
|
11
13
|
export interface AssetURLOptions {
|
|
12
14
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
* If base is provided, instead of transforming relative asset urls into
|
|
16
|
+
* imports, they will be directly rewritten to absolute urls.
|
|
17
|
+
*/
|
|
16
18
|
base?: string | null;
|
|
17
19
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
* If true, also processes absolute urls.
|
|
21
|
+
*/
|
|
20
22
|
includeAbsolute?: boolean;
|
|
21
23
|
tags?: AssetURLTagConfig;
|
|
22
24
|
}
|
|
@@ -54,15 +56,15 @@ export interface SFCTemplateCompileOptions {
|
|
|
54
56
|
preprocessLang?: string;
|
|
55
57
|
preprocessOptions?: any;
|
|
56
58
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
* In some cases, compiler-sfc may not be inside the project root (e.g. when
|
|
60
|
+
* linked or globally installed). In such cases a custom `require` can be
|
|
61
|
+
* passed to correctly resolve the preprocessors.
|
|
62
|
+
*/
|
|
61
63
|
preprocessCustomRequire?: (id: string) => any;
|
|
62
64
|
/**
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
* Configure what tags/attributes to transform into asset url imports,
|
|
66
|
+
* or disable the transform altogether with `false`.
|
|
67
|
+
*/
|
|
66
68
|
transformAssetUrls?: AssetURLOptions | AssetURLTagConfig | boolean;
|
|
67
69
|
}
|
|
68
70
|
export declare function compileTemplate(options: SFCTemplateCompileOptions): SFCTemplateCompileResults;
|
|
@@ -70,76 +72,76 @@ export declare function compileTemplate(options: SFCTemplateCompileOptions): SFC
|
|
|
70
72
|
//#region temp/packages/compiler-sfc/src/compileScript.d.ts
|
|
71
73
|
export interface SFCScriptCompileOptions {
|
|
72
74
|
/**
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
* Scope ID for prefixing injected CSS variables.
|
|
76
|
+
* This must be consistent with the `id` passed to `compileStyle`.
|
|
77
|
+
*/
|
|
76
78
|
id: string;
|
|
77
79
|
/**
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
* Production mode. Used to determine whether to generate hashed CSS variables
|
|
81
|
+
*/
|
|
80
82
|
isProd?: boolean;
|
|
81
83
|
/**
|
|
82
|
-
|
|
83
|
-
|
|
84
|
+
* Enable/disable source map. Defaults to true.
|
|
85
|
+
*/
|
|
84
86
|
sourceMap?: boolean;
|
|
85
87
|
/**
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
* https://babeljs.io/docs/en/babel-parser#plugins
|
|
89
|
+
*/
|
|
88
90
|
babelParserPlugins?: ParserPlugin[];
|
|
89
91
|
/**
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
* A list of files to parse for global types to be made available for type
|
|
93
|
+
* resolving in SFC macros. The list must be fully resolved file system paths.
|
|
94
|
+
*/
|
|
93
95
|
globalTypeFiles?: string[];
|
|
94
96
|
/**
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
* Compile the template and inline the resulting render function
|
|
98
|
+
* directly inside setup().
|
|
99
|
+
* - Only affects `<script setup>`
|
|
100
|
+
* - This should only be used in production because it prevents the template
|
|
101
|
+
* from being hot-reloaded separately from component state.
|
|
102
|
+
*/
|
|
101
103
|
inlineTemplate?: boolean;
|
|
102
104
|
/**
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
* Generate the final component as a variable instead of default export.
|
|
106
|
+
* This is useful in e.g. @vitejs/plugin-vue where the script needs to be
|
|
107
|
+
* placed inside the main module.
|
|
108
|
+
*/
|
|
107
109
|
genDefaultAs?: string;
|
|
108
110
|
/**
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
* Options for template compilation when inlining. Note these are options that
|
|
112
|
+
* would normally be passed to `compiler-sfc`'s own `compileTemplate()`, not
|
|
113
|
+
* options passed to `compiler-dom`.
|
|
114
|
+
*/
|
|
113
115
|
templateOptions?: Partial<SFCTemplateCompileOptions>;
|
|
114
116
|
/**
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
* Hoist <script setup> static constants.
|
|
118
|
+
* - Only enables when one `<script setup>` exists.
|
|
119
|
+
* @default true
|
|
120
|
+
*/
|
|
119
121
|
hoistStatic?: boolean;
|
|
120
122
|
/**
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
* Set to `false` to disable reactive destructure for `defineProps` (pre-3.5
|
|
124
|
+
* behavior), or set to `'error'` to throw hard error on props destructures.
|
|
125
|
+
* @default true
|
|
126
|
+
*/
|
|
125
127
|
propsDestructure?: boolean | "error";
|
|
126
128
|
/**
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
* File system access methods to be used when resolving types
|
|
130
|
+
* imported in SFC macros. Defaults to ts.sys in Node.js, can be overwritten
|
|
131
|
+
* to use a virtual file system for use in browsers (e.g. in REPLs)
|
|
132
|
+
*/
|
|
131
133
|
fs?: {
|
|
132
134
|
fileExists(file: string): boolean;
|
|
133
135
|
readFile(file: string): string | undefined;
|
|
134
136
|
realpath?(file: string): string;
|
|
135
137
|
};
|
|
136
138
|
/**
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
* Transform Vue SFCs into custom elements.
|
|
140
|
+
*/
|
|
139
141
|
customElement?: boolean | ((filename: string) => boolean);
|
|
140
142
|
/**
|
|
141
|
-
|
|
142
|
-
|
|
143
|
+
* Force to use of Vapor mode.
|
|
144
|
+
*/
|
|
143
145
|
vapor?: boolean;
|
|
144
146
|
}
|
|
145
147
|
interface ImportBinding {
|
|
@@ -151,10 +153,10 @@ interface ImportBinding {
|
|
|
151
153
|
isUsedInTemplate: boolean;
|
|
152
154
|
}
|
|
153
155
|
/**
|
|
154
|
-
* Compile `<script setup>`
|
|
155
|
-
* It requires the whole SFC descriptor because we need to handle and merge
|
|
156
|
-
* normal `<script>` + `<script setup>` if both are present.
|
|
157
|
-
*/
|
|
156
|
+
* Compile `<script setup>`
|
|
157
|
+
* It requires the whole SFC descriptor because we need to handle and merge
|
|
158
|
+
* normal `<script>` + `<script setup>` if both are present.
|
|
159
|
+
*/
|
|
158
160
|
export declare function compileScript(sfc: SFCDescriptor, options: SFCScriptCompileOptions): SFCScriptBlock;
|
|
159
161
|
//#endregion
|
|
160
162
|
//#region temp/packages/compiler-sfc/src/parse.d.ts
|
|
@@ -185,14 +187,14 @@ export interface SFCScriptBlock extends SFCBlock {
|
|
|
185
187
|
setup?: string | boolean;
|
|
186
188
|
bindings?: BindingMetadata$1;
|
|
187
189
|
imports?: Record<string, ImportBinding>;
|
|
188
|
-
scriptAst?:
|
|
189
|
-
scriptSetupAst?:
|
|
190
|
+
scriptAst?: import("@babel/types").Statement[];
|
|
191
|
+
scriptSetupAst?: import("@babel/types").Statement[];
|
|
190
192
|
warnings?: string[];
|
|
191
193
|
/**
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
* Fully resolved dependency file paths (unix slashes) with imported types
|
|
195
|
+
* used in macros, used for HMR cache busting in @vitejs/plugin-vue and
|
|
196
|
+
* vue-loader.
|
|
197
|
+
*/
|
|
196
198
|
deps?: string[];
|
|
197
199
|
}
|
|
198
200
|
export interface SFCStyleBlock extends SFCBlock {
|
|
@@ -210,19 +212,19 @@ export interface SFCDescriptor {
|
|
|
210
212
|
customBlocks: SFCBlock[];
|
|
211
213
|
cssVars: string[];
|
|
212
214
|
/**
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
215
|
+
* whether the SFC uses :slotted() modifier.
|
|
216
|
+
* this is used as a compiler optimization hint.
|
|
217
|
+
*/
|
|
216
218
|
slotted: boolean;
|
|
217
219
|
vapor?: boolean;
|
|
218
220
|
/**
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
221
|
+
* compare with an existing descriptor to determine whether HMR should perform
|
|
222
|
+
* a reload vs. re-render.
|
|
223
|
+
*
|
|
224
|
+
* Note: this comparison assumes the prev/next script are already identical,
|
|
225
|
+
* and only checks the special case where <script setup lang="ts"> unused import
|
|
226
|
+
* pruning result changes due to template changes.
|
|
227
|
+
*/
|
|
226
228
|
shouldForceReload: (prevImports: Record<string, ImportBinding>) => boolean;
|
|
227
229
|
}
|
|
228
230
|
export interface SFCParseResult {
|
|
@@ -249,14 +251,14 @@ export interface SFCStyleCompileOptions {
|
|
|
249
251
|
postcssOptions?: any;
|
|
250
252
|
postcssPlugins?: any[];
|
|
251
253
|
/**
|
|
252
|
-
|
|
253
|
-
|
|
254
|
+
* @deprecated use `inMap` instead.
|
|
255
|
+
*/
|
|
254
256
|
map?: RawSourceMap;
|
|
255
257
|
}
|
|
256
258
|
/**
|
|
257
|
-
* Aligns with postcss-modules
|
|
258
|
-
* https://github.com/css-modules/postcss-modules
|
|
259
|
-
*/
|
|
259
|
+
* Aligns with postcss-modules
|
|
260
|
+
* https://github.com/css-modules/postcss-modules
|
|
261
|
+
*/
|
|
260
262
|
interface CSSModulesOptions {
|
|
261
263
|
scopeBehaviour?: "global" | "local";
|
|
262
264
|
generateScopedName?: string | ((name: string, filename: string, css: string) => string);
|
|
@@ -284,9 +286,9 @@ export declare function compileStyleAsync(options: SFCAsyncStyleCompileOptions):
|
|
|
284
286
|
//#region temp/packages/compiler-sfc/src/rewriteDefault.d.ts
|
|
285
287
|
export declare function rewriteDefault(input: string, as: string, parserPlugins?: ParserPlugin[]): string;
|
|
286
288
|
/**
|
|
287
|
-
* Utility for rewriting `export default` in a script block into a variable
|
|
288
|
-
* declaration so that we can inject things into it
|
|
289
|
-
*/
|
|
289
|
+
* Utility for rewriting `export default` in a script block into a variable
|
|
290
|
+
* declaration so that we can inject things into it
|
|
291
|
+
*/
|
|
290
292
|
export declare function rewriteDefaultAST(ast: Statement$1[], s: MagicString$1, as: string): void;
|
|
291
293
|
//#endregion
|
|
292
294
|
//#region temp/packages/compiler-sfc/src/script/defineProps.d.ts
|
|
@@ -307,47 +309,47 @@ interface ModelDecl {
|
|
|
307
309
|
//#region temp/packages/compiler-core/src/options.d.ts
|
|
308
310
|
declare enum BindingTypes {
|
|
309
311
|
/**
|
|
310
|
-
|
|
311
|
-
|
|
312
|
+
* returned from data()
|
|
313
|
+
*/
|
|
312
314
|
DATA = "data",
|
|
313
315
|
/**
|
|
314
|
-
|
|
315
|
-
|
|
316
|
+
* declared as a prop
|
|
317
|
+
*/
|
|
316
318
|
PROPS = "props",
|
|
317
319
|
/**
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
320
|
+
* a local alias of a `<script setup>` destructured prop.
|
|
321
|
+
* the original is stored in __propsAliases of the bindingMetadata object.
|
|
322
|
+
*/
|
|
321
323
|
PROPS_ALIASED = "props-aliased",
|
|
322
324
|
/**
|
|
323
|
-
|
|
324
|
-
|
|
325
|
+
* a let binding (may or may not be a ref)
|
|
326
|
+
*/
|
|
325
327
|
SETUP_LET = "setup-let",
|
|
326
328
|
/**
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
329
|
+
* a const binding that can never be a ref.
|
|
330
|
+
* these bindings don't need `unref()` calls when processed in inlined
|
|
331
|
+
* template expressions.
|
|
332
|
+
*/
|
|
331
333
|
SETUP_CONST = "setup-const",
|
|
332
334
|
/**
|
|
333
|
-
|
|
334
|
-
|
|
335
|
+
* a const binding that does not need `unref()`, but may be mutated.
|
|
336
|
+
*/
|
|
335
337
|
SETUP_REACTIVE_CONST = "setup-reactive-const",
|
|
336
338
|
/**
|
|
337
|
-
|
|
338
|
-
|
|
339
|
+
* a const binding that may be a ref.
|
|
340
|
+
*/
|
|
339
341
|
SETUP_MAYBE_REF = "setup-maybe-ref",
|
|
340
342
|
/**
|
|
341
|
-
|
|
342
|
-
|
|
343
|
+
* bindings that are guaranteed to be refs
|
|
344
|
+
*/
|
|
343
345
|
SETUP_REF = "setup-ref",
|
|
344
346
|
/**
|
|
345
|
-
|
|
346
|
-
|
|
347
|
+
* declared by other options, e.g. computed, inject
|
|
348
|
+
*/
|
|
347
349
|
OPTIONS = "options",
|
|
348
350
|
/**
|
|
349
|
-
|
|
350
|
-
|
|
351
|
+
* a literal constant, e.g. 'foo', 1, true
|
|
352
|
+
*/
|
|
351
353
|
LITERAL_CONST = "literal-const"
|
|
352
354
|
}
|
|
353
355
|
type BindingMetadata$2 = {
|
|
@@ -399,12 +401,12 @@ export declare class ScriptCompileContext {
|
|
|
399
401
|
helperImports: Set<string>;
|
|
400
402
|
helper(key: string): string;
|
|
401
403
|
/**
|
|
402
|
-
|
|
403
|
-
|
|
404
|
+
* to be exposed on compiled script block for HMR cache busting
|
|
405
|
+
*/
|
|
404
406
|
deps?: Set<string>;
|
|
405
407
|
/**
|
|
406
|
-
|
|
407
|
-
|
|
408
|
+
* cache for resolved fs
|
|
409
|
+
*/
|
|
408
410
|
fs?: NonNullable<SFCScriptCompileOptions["fs"]>;
|
|
409
411
|
constructor(descriptor: SFCDescriptor, options: Partial<SFCScriptCompileOptions>);
|
|
410
412
|
getString(node: Node$1, scriptSetup?: boolean): string;
|
|
@@ -412,7 +414,7 @@ export declare class ScriptCompileContext {
|
|
|
412
414
|
error(msg: string, node: Node$1, scope?: TypeScope): never;
|
|
413
415
|
}
|
|
414
416
|
//#endregion
|
|
415
|
-
//#region node_modules/.pnpm/typescript@
|
|
417
|
+
//#region node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/typescript.d.ts
|
|
416
418
|
/*! *****************************************************************************
|
|
417
419
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
418
420
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
@@ -422,7 +424,7 @@ License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
422
424
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
423
425
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
424
426
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
425
|
-
|
|
427
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
426
428
|
|
|
427
429
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
428
430
|
and limitations under the License.
|
|
@@ -449,8 +451,8 @@ declare namespace ts {
|
|
|
449
451
|
export import SignatureHelpTriggerReason = ts.SignatureHelpTriggerReason;
|
|
450
452
|
export import SymbolDisplayPart = ts.SymbolDisplayPart;
|
|
451
453
|
export import UserPreferences = ts.UserPreferences;
|
|
452
|
-
type ChangePropertyTypes<T, Substitutions extends { [K in keyof T]?: any }> = { [K in keyof T]: K extends keyof Substitutions ? Substitutions[K] : T[K] };
|
|
453
|
-
type ChangeStringIndexSignature<T, NewStringIndexSignatureType> = { [K in keyof T]: string extends K ? NewStringIndexSignatureType : T[K] };
|
|
454
|
+
type ChangePropertyTypes<T, Substitutions extends { [K in keyof T]?: any; }> = { [K in keyof T]: K extends keyof Substitutions ? Substitutions[K] : T[K]; };
|
|
455
|
+
type ChangeStringIndexSignature<T, NewStringIndexSignatureType> = { [K in keyof T]: string extends K ? NewStringIndexSignatureType : T[K]; };
|
|
454
456
|
export enum CommandTypes {
|
|
455
457
|
JsxClosingTag = "jsxClosingTag",
|
|
456
458
|
LinkedEditingRange = "linkedEditingRange",
|
|
@@ -512,6 +514,7 @@ declare namespace ts {
|
|
|
512
514
|
GetApplicableRefactors = "getApplicableRefactors",
|
|
513
515
|
GetEditsForRefactor = "getEditsForRefactor",
|
|
514
516
|
GetMoveToRefactoringFileSuggestions = "getMoveToRefactoringFileSuggestions",
|
|
517
|
+
PreparePasteEdits = "preparePasteEdits",
|
|
515
518
|
GetPasteEdits = "getPasteEdits",
|
|
516
519
|
OrganizeImports = "organizeImports",
|
|
517
520
|
GetEditsForFileRename = "getEditsForFileRename",
|
|
@@ -627,7 +630,7 @@ declare namespace ts {
|
|
|
627
630
|
/**
|
|
628
631
|
* Time spent computing each kind of diagnostics, in milliseconds.
|
|
629
632
|
*/
|
|
630
|
-
export type DiagnosticPerformanceData = { [Kind in DiagnosticEventKind]?: number };
|
|
633
|
+
export type DiagnosticPerformanceData = { [Kind in DiagnosticEventKind]?: number; };
|
|
631
634
|
export interface FileDiagnosticPerformanceData extends DiagnosticPerformanceData {
|
|
632
635
|
/**
|
|
633
636
|
* The file for which the performance data is reported.
|
|
@@ -766,6 +769,10 @@ declare namespace ts {
|
|
|
766
769
|
* Indicate if the file name list of the project is needed
|
|
767
770
|
*/
|
|
768
771
|
needFileNameList: boolean;
|
|
772
|
+
/**
|
|
773
|
+
* if true returns details about default configured project calculation
|
|
774
|
+
*/
|
|
775
|
+
needDefaultConfiguredProjectInfo?: boolean;
|
|
769
776
|
}
|
|
770
777
|
/**
|
|
771
778
|
* A request to get the project information of the current file.
|
|
@@ -789,6 +796,17 @@ declare namespace ts {
|
|
|
789
796
|
*/
|
|
790
797
|
projectFileName: string;
|
|
791
798
|
}
|
|
799
|
+
/**
|
|
800
|
+
* Details about the default project for the file if tsconfig file is found
|
|
801
|
+
*/
|
|
802
|
+
export interface DefaultConfiguredProjectInfo {
|
|
803
|
+
/** List of config files looked and did not match because file was not part of root file names */
|
|
804
|
+
notMatchedByConfig?: readonly string[];
|
|
805
|
+
/** List of projects which were loaded but file was not part of the project or is file from referenced project */
|
|
806
|
+
notInProject?: readonly string[];
|
|
807
|
+
/** Configured project used as default */
|
|
808
|
+
defaultProject?: string;
|
|
809
|
+
}
|
|
792
810
|
/**
|
|
793
811
|
* Response message body for "projectInfo" request
|
|
794
812
|
*/
|
|
@@ -806,6 +824,10 @@ declare namespace ts {
|
|
|
806
824
|
* Indicates if the project has a active language service instance
|
|
807
825
|
*/
|
|
808
826
|
languageServiceDisabled?: boolean;
|
|
827
|
+
/**
|
|
828
|
+
* Information about default project
|
|
829
|
+
*/
|
|
830
|
+
configuredProjectInfo?: DefaultConfiguredProjectInfo;
|
|
809
831
|
}
|
|
810
832
|
/**
|
|
811
833
|
* Represents diagnostic info that includes location of diagnostic in two forms
|
|
@@ -898,6 +920,19 @@ declare namespace ts {
|
|
|
898
920
|
files: string[];
|
|
899
921
|
};
|
|
900
922
|
}
|
|
923
|
+
/**
|
|
924
|
+
* Request to check if `pasteEdits` should be provided for a given location post copying text from that location.
|
|
925
|
+
*/
|
|
926
|
+
export interface PreparePasteEditsRequest extends FileRequest {
|
|
927
|
+
command: CommandTypes.PreparePasteEdits;
|
|
928
|
+
arguments: PreparePasteEditsRequestArgs;
|
|
929
|
+
}
|
|
930
|
+
export interface PreparePasteEditsRequestArgs extends FileRequestArgs {
|
|
931
|
+
copiedTextSpan: TextSpan[];
|
|
932
|
+
}
|
|
933
|
+
export interface PreparePasteEditsResponse extends Response {
|
|
934
|
+
body: boolean;
|
|
935
|
+
}
|
|
901
936
|
/**
|
|
902
937
|
* Request refactorings at a given position post pasting text from some other location.
|
|
903
938
|
*/
|
|
@@ -1846,6 +1881,13 @@ declare namespace ts {
|
|
|
1846
1881
|
command: CommandTypes.Quickinfo;
|
|
1847
1882
|
arguments: FileLocationRequestArgs;
|
|
1848
1883
|
}
|
|
1884
|
+
export interface QuickInfoRequestArgs extends FileLocationRequestArgs {
|
|
1885
|
+
/**
|
|
1886
|
+
* This controls how many levels of definitions will be expanded in the quick info response.
|
|
1887
|
+
* The default value is 0.
|
|
1888
|
+
*/
|
|
1889
|
+
verbosityLevel?: number;
|
|
1890
|
+
}
|
|
1849
1891
|
/**
|
|
1850
1892
|
* Body of QuickInfoResponse.
|
|
1851
1893
|
*/
|
|
@@ -1879,6 +1921,10 @@ declare namespace ts {
|
|
|
1879
1921
|
* JSDoc tags associated with symbol.
|
|
1880
1922
|
*/
|
|
1881
1923
|
tags: JSDocTagInfo[];
|
|
1924
|
+
/**
|
|
1925
|
+
* Whether the verbosity level can be increased for this quick info response.
|
|
1926
|
+
*/
|
|
1927
|
+
canIncreaseVerbosityLevel?: boolean;
|
|
1882
1928
|
}
|
|
1883
1929
|
/**
|
|
1884
1930
|
* Quickinfo response message.
|
|
@@ -2866,6 +2912,8 @@ declare namespace ts {
|
|
|
2866
2912
|
ES2022 = "es2022",
|
|
2867
2913
|
ESNext = "esnext",
|
|
2868
2914
|
Node16 = "node16",
|
|
2915
|
+
Node18 = "node18",
|
|
2916
|
+
Node20 = "node20",
|
|
2869
2917
|
NodeNext = "nodenext",
|
|
2870
2918
|
Preserve = "preserve"
|
|
2871
2919
|
}
|
|
@@ -2875,6 +2923,7 @@ declare namespace ts {
|
|
|
2875
2923
|
Node = "node",
|
|
2876
2924
|
/** @deprecated Renamed to `Node10` */
|
|
2877
2925
|
NodeJs = "node",
|
|
2926
|
+
/** @deprecated */
|
|
2878
2927
|
Node10 = "node10",
|
|
2879
2928
|
Node16 = "node16",
|
|
2880
2929
|
NodeNext = "nodenext",
|
|
@@ -2887,6 +2936,7 @@ declare namespace ts {
|
|
|
2887
2936
|
export enum ScriptTarget {
|
|
2888
2937
|
/** @deprecated */
|
|
2889
2938
|
ES3 = "es3",
|
|
2939
|
+
/** @deprecated */
|
|
2890
2940
|
ES5 = "es5",
|
|
2891
2941
|
ES6 = "es6",
|
|
2892
2942
|
ES2015 = "es2015",
|
|
@@ -2898,9 +2948,12 @@ declare namespace ts {
|
|
|
2898
2948
|
ES2021 = "es2021",
|
|
2899
2949
|
ES2022 = "es2022",
|
|
2900
2950
|
ES2023 = "es2023",
|
|
2951
|
+
ES2024 = "es2024",
|
|
2952
|
+
ES2025 = "es2025",
|
|
2901
2953
|
ESNext = "esnext",
|
|
2902
2954
|
JSON = "json",
|
|
2903
|
-
Latest = "esnext"
|
|
2955
|
+
Latest = "esnext",
|
|
2956
|
+
LatestStandard = "es2025"
|
|
2904
2957
|
}
|
|
2905
2958
|
}
|
|
2906
2959
|
namespace typingsInstaller {
|
|
@@ -3199,7 +3252,6 @@ declare namespace ts {
|
|
|
3199
3252
|
abstract class Project implements LanguageServiceHost, ModuleResolutionHost {
|
|
3200
3253
|
readonly projectKind: ProjectKind;
|
|
3201
3254
|
readonly projectService: ProjectService;
|
|
3202
|
-
private documentRegistry;
|
|
3203
3255
|
private compilerOptions;
|
|
3204
3256
|
compileOnSaveEnabled: boolean;
|
|
3205
3257
|
protected watchOptions: WatchOptions | undefined;
|
|
@@ -3219,7 +3271,6 @@ declare namespace ts {
|
|
|
3219
3271
|
private lastReportedFileNames;
|
|
3220
3272
|
private lastReportedVersion;
|
|
3221
3273
|
protected projectErrors: Diagnostic[] | undefined;
|
|
3222
|
-
protected isInitialLoadPending: () => boolean;
|
|
3223
3274
|
private typingsCache;
|
|
3224
3275
|
private typingWatchers;
|
|
3225
3276
|
private readonly cancellationToken;
|
|
@@ -3233,14 +3284,14 @@ declare namespace ts {
|
|
|
3233
3284
|
readonly jsDocParsingMode: JSDocParsingMode | undefined;
|
|
3234
3285
|
isKnownTypesPackageName(name: string): boolean;
|
|
3235
3286
|
installPackage(options: InstallPackageOptions): Promise<ApplyCodeActionCommandResult>;
|
|
3236
|
-
getCompilationSettings():
|
|
3237
|
-
getCompilerOptions():
|
|
3287
|
+
getCompilationSettings(): CompilerOptions;
|
|
3288
|
+
getCompilerOptions(): CompilerOptions;
|
|
3238
3289
|
getNewLine(): string;
|
|
3239
3290
|
getProjectVersion(): string;
|
|
3240
3291
|
getProjectReferences(): readonly ProjectReference[] | undefined;
|
|
3241
3292
|
getScriptFileNames(): string[];
|
|
3242
3293
|
private getOrCreateScriptInfoAndAttachToProject;
|
|
3243
|
-
getScriptKind(fileName: string):
|
|
3294
|
+
getScriptKind(fileName: string): ScriptKind;
|
|
3244
3295
|
getScriptVersion(filename: string): string;
|
|
3245
3296
|
getScriptSnapshot(filename: string): IScriptSnapshot | undefined;
|
|
3246
3297
|
getCancellationToken(): HostCancellationToken;
|
|
@@ -3276,16 +3327,16 @@ declare namespace ts {
|
|
|
3276
3327
|
getProjectName(): string;
|
|
3277
3328
|
protected removeLocalTypingsFromTypeAcquisition(newTypeAcquisition: TypeAcquisition): TypeAcquisition;
|
|
3278
3329
|
getExternalFiles(updateLevel?: ProgramUpdateLevel): SortedReadonlyArray<string>;
|
|
3279
|
-
getSourceFile(path: Path):
|
|
3330
|
+
getSourceFile(path: Path): SourceFile | undefined;
|
|
3280
3331
|
close(): void;
|
|
3281
3332
|
private detachScriptInfoIfNotRoot;
|
|
3282
3333
|
isClosed(): boolean;
|
|
3283
3334
|
hasRoots(): boolean;
|
|
3284
3335
|
getRootFiles(): NormalizedPath[];
|
|
3285
|
-
getRootScriptInfos():
|
|
3336
|
+
getRootScriptInfos(): ScriptInfo[];
|
|
3286
3337
|
getScriptInfos(): ScriptInfo[];
|
|
3287
3338
|
getExcludedFiles(): readonly NormalizedPath[];
|
|
3288
|
-
getFileNames(excludeFilesFromExternalLibraries?: boolean, excludeConfigFiles?: boolean):
|
|
3339
|
+
getFileNames(excludeFilesFromExternalLibraries?: boolean, excludeConfigFiles?: boolean): NormalizedPath[];
|
|
3289
3340
|
hasConfigFile(configFilePath: NormalizedPath): boolean;
|
|
3290
3341
|
containsScriptInfo(info: ScriptInfo): boolean;
|
|
3291
3342
|
containsFile(filename: NormalizedPath, requireOpen?: boolean): boolean;
|
|
@@ -3310,19 +3361,18 @@ declare namespace ts {
|
|
|
3310
3361
|
private isValidGeneratedFileWatcher;
|
|
3311
3362
|
private clearGeneratedFileWatch;
|
|
3312
3363
|
getScriptInfoForNormalizedPath(fileName: NormalizedPath): ScriptInfo | undefined;
|
|
3313
|
-
getScriptInfo(uncheckedFileName: string):
|
|
3364
|
+
getScriptInfo(uncheckedFileName: string): ScriptInfo | undefined;
|
|
3314
3365
|
filesToString(writeProjectFileNames: boolean): string;
|
|
3315
3366
|
private filesToStringWorker;
|
|
3316
3367
|
setCompilerOptions(compilerOptions: CompilerOptions): void;
|
|
3317
3368
|
setTypeAcquisition(newTypeAcquisition: TypeAcquisition | undefined): void;
|
|
3318
|
-
getTypeAcquisition():
|
|
3369
|
+
getTypeAcquisition(): TypeAcquisition;
|
|
3319
3370
|
protected removeRoot(info: ScriptInfo): void;
|
|
3320
3371
|
protected enableGlobalPlugins(options: CompilerOptions): void;
|
|
3321
3372
|
protected enablePlugin(pluginConfigEntry: PluginImport, searchPaths: string[]): void;
|
|
3322
3373
|
/** Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed. */
|
|
3323
3374
|
refreshDiagnostics(): void;
|
|
3324
3375
|
private isDefaultProjectForOpenFiles;
|
|
3325
|
-
private getCompilerOptionsForNoDtsResolutionProject;
|
|
3326
3376
|
}
|
|
3327
3377
|
/**
|
|
3328
3378
|
* If a file is opened and no tsconfig (or jsconfig) is found,
|
|
@@ -3349,7 +3399,7 @@ declare namespace ts {
|
|
|
3349
3399
|
getScriptFileNames(): string[];
|
|
3350
3400
|
getLanguageService(): never;
|
|
3351
3401
|
getHostForAutoImportProvider(): never;
|
|
3352
|
-
getProjectReferences(): readonly
|
|
3402
|
+
getProjectReferences(): readonly ProjectReference[] | undefined;
|
|
3353
3403
|
}
|
|
3354
3404
|
/**
|
|
3355
3405
|
* If a file is opened, the server will look for a tsconfig (or jsconfig)
|
|
@@ -3366,7 +3416,7 @@ declare namespace ts {
|
|
|
3366
3416
|
* @returns: true if set of files in the project stays the same and false - otherwise.
|
|
3367
3417
|
*/
|
|
3368
3418
|
updateGraph(): boolean;
|
|
3369
|
-
getConfigFilePath():
|
|
3419
|
+
getConfigFilePath(): NormalizedPath;
|
|
3370
3420
|
getProjectReferences(): readonly ProjectReference[] | undefined;
|
|
3371
3421
|
updateReferences(refs: readonly ProjectReference[] | undefined): void;
|
|
3372
3422
|
/**
|
|
@@ -3390,14 +3440,14 @@ declare namespace ts {
|
|
|
3390
3440
|
compileOnSaveEnabled: boolean;
|
|
3391
3441
|
excludedFiles: readonly NormalizedPath[];
|
|
3392
3442
|
updateGraph(): boolean;
|
|
3393
|
-
getExcludedFiles(): readonly
|
|
3443
|
+
getExcludedFiles(): readonly NormalizedPath[];
|
|
3394
3444
|
}
|
|
3395
3445
|
function convertFormatOptions(protocolOptions: protocol.FormatCodeSettings): FormatCodeSettings;
|
|
3396
3446
|
function convertCompilerOptions(protocolOptions: protocol.ExternalProjectCompilerOptions): CompilerOptions & protocol.CompileOnSaveMixin;
|
|
3397
3447
|
function convertWatchOptions(protocolOptions: protocol.ExternalProjectCompilerOptions, currentDirectory?: string): WatchOptionsAndErrors | undefined;
|
|
3398
3448
|
function convertTypeAcquisition(protocolOptions: protocol.InferredProjectCompilerOptions): TypeAcquisition | undefined;
|
|
3399
3449
|
function tryConvertScriptKindName(scriptKindName: protocol.ScriptKindName | ScriptKind): ScriptKind;
|
|
3400
|
-
function convertScriptKindName(scriptKindName: protocol.ScriptKindName): ScriptKind
|
|
3450
|
+
function convertScriptKindName(scriptKindName: protocol.ScriptKindName): ScriptKind;
|
|
3401
3451
|
const maxProgramSizeForNonTsFiles: number;
|
|
3402
3452
|
const ProjectsUpdatedInBackgroundEvent = "projectsUpdatedInBackground";
|
|
3403
3453
|
interface ProjectsUpdatedInBackgroundEvent {
|
|
@@ -3668,6 +3718,7 @@ declare namespace ts {
|
|
|
3668
3718
|
private deleteScriptInfo;
|
|
3669
3719
|
private configFileExists;
|
|
3670
3720
|
private createConfigFileWatcherForParsedConfig;
|
|
3721
|
+
private ensureConfigFileWatcherForProject;
|
|
3671
3722
|
private forEachConfigFileLocation;
|
|
3672
3723
|
private getConfigFileNameForFileFromCache;
|
|
3673
3724
|
private setConfigFileNameForFileInCache;
|
|
@@ -3681,6 +3732,7 @@ declare namespace ts {
|
|
|
3681
3732
|
private updateNonInferredProjectFiles;
|
|
3682
3733
|
private updateRootAndOptionsOfNonInferredProject;
|
|
3683
3734
|
private reloadFileNamesOfParsedConfig;
|
|
3735
|
+
private setProjectForReload;
|
|
3684
3736
|
private clearSemanticCache;
|
|
3685
3737
|
private getOrCreateInferredProjectForProjectRootPathIfEnabled;
|
|
3686
3738
|
private getOrCreateSingleInferredProjectIfEnabled;
|
|
@@ -3727,6 +3779,8 @@ declare namespace ts {
|
|
|
3727
3779
|
private getOrCreateOpenScriptInfo;
|
|
3728
3780
|
private assignProjectToOpenedScriptInfo;
|
|
3729
3781
|
private tryFindDefaultConfiguredProjectForOpenScriptInfo;
|
|
3782
|
+
private isMatchedByConfig;
|
|
3783
|
+
private tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo;
|
|
3730
3784
|
private tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo;
|
|
3731
3785
|
private ensureProjectChildren;
|
|
3732
3786
|
private cleanupConfiguredProjects;
|
|
@@ -3865,9 +3919,11 @@ declare namespace ts {
|
|
|
3865
3919
|
private getDocumentHighlights;
|
|
3866
3920
|
private provideInlayHints;
|
|
3867
3921
|
private mapCode;
|
|
3922
|
+
private getCopilotRelatedInfo;
|
|
3868
3923
|
private setCompilerOptionsForInferredProjects;
|
|
3869
3924
|
private getProjectInfo;
|
|
3870
3925
|
private getProjectInfoWorker;
|
|
3926
|
+
private getDefaultConfiguredProjectInfo;
|
|
3871
3927
|
private getRenameInfo;
|
|
3872
3928
|
private getProjects;
|
|
3873
3929
|
private getDefaultProject;
|
|
@@ -3920,6 +3976,7 @@ declare namespace ts {
|
|
|
3920
3976
|
private getApplicableRefactors;
|
|
3921
3977
|
private getEditsForRefactor;
|
|
3922
3978
|
private getMoveToRefactoringFileSuggestions;
|
|
3979
|
+
private preparePasteEdits;
|
|
3923
3980
|
private getPasteEdits;
|
|
3924
3981
|
private organizeImports;
|
|
3925
3982
|
private getEditsForFileRename;
|
|
@@ -3980,7 +4037,7 @@ declare namespace ts {
|
|
|
3980
4037
|
readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[] | undefined, depth?: number): string[];
|
|
3981
4038
|
}
|
|
3982
4039
|
}
|
|
3983
|
-
const versionMajorMinor = "
|
|
4040
|
+
const versionMajorMinor = "6.0";
|
|
3984
4041
|
/** The version of the TypeScript compiler release */
|
|
3985
4042
|
const version: string;
|
|
3986
4043
|
/**
|
|
@@ -4176,205 +4233,204 @@ declare namespace ts {
|
|
|
4176
4233
|
BigIntKeyword = 163,
|
|
4177
4234
|
OverrideKeyword = 164,
|
|
4178
4235
|
OfKeyword = 165,
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
AssertClause =
|
|
4317
|
-
/** @deprecated */
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
JSDocNamepathType = 319,
|
|
4338
|
-
JSDoc = 320,
|
|
4236
|
+
DeferKeyword = 166,
|
|
4237
|
+
QualifiedName = 167,
|
|
4238
|
+
ComputedPropertyName = 168,
|
|
4239
|
+
TypeParameter = 169,
|
|
4240
|
+
Parameter = 170,
|
|
4241
|
+
Decorator = 171,
|
|
4242
|
+
PropertySignature = 172,
|
|
4243
|
+
PropertyDeclaration = 173,
|
|
4244
|
+
MethodSignature = 174,
|
|
4245
|
+
MethodDeclaration = 175,
|
|
4246
|
+
ClassStaticBlockDeclaration = 176,
|
|
4247
|
+
Constructor = 177,
|
|
4248
|
+
GetAccessor = 178,
|
|
4249
|
+
SetAccessor = 179,
|
|
4250
|
+
CallSignature = 180,
|
|
4251
|
+
ConstructSignature = 181,
|
|
4252
|
+
IndexSignature = 182,
|
|
4253
|
+
TypePredicate = 183,
|
|
4254
|
+
TypeReference = 184,
|
|
4255
|
+
FunctionType = 185,
|
|
4256
|
+
ConstructorType = 186,
|
|
4257
|
+
TypeQuery = 187,
|
|
4258
|
+
TypeLiteral = 188,
|
|
4259
|
+
ArrayType = 189,
|
|
4260
|
+
TupleType = 190,
|
|
4261
|
+
OptionalType = 191,
|
|
4262
|
+
RestType = 192,
|
|
4263
|
+
UnionType = 193,
|
|
4264
|
+
IntersectionType = 194,
|
|
4265
|
+
ConditionalType = 195,
|
|
4266
|
+
InferType = 196,
|
|
4267
|
+
ParenthesizedType = 197,
|
|
4268
|
+
ThisType = 198,
|
|
4269
|
+
TypeOperator = 199,
|
|
4270
|
+
IndexedAccessType = 200,
|
|
4271
|
+
MappedType = 201,
|
|
4272
|
+
LiteralType = 202,
|
|
4273
|
+
NamedTupleMember = 203,
|
|
4274
|
+
TemplateLiteralType = 204,
|
|
4275
|
+
TemplateLiteralTypeSpan = 205,
|
|
4276
|
+
ImportType = 206,
|
|
4277
|
+
ObjectBindingPattern = 207,
|
|
4278
|
+
ArrayBindingPattern = 208,
|
|
4279
|
+
BindingElement = 209,
|
|
4280
|
+
ArrayLiteralExpression = 210,
|
|
4281
|
+
ObjectLiteralExpression = 211,
|
|
4282
|
+
PropertyAccessExpression = 212,
|
|
4283
|
+
ElementAccessExpression = 213,
|
|
4284
|
+
CallExpression = 214,
|
|
4285
|
+
NewExpression = 215,
|
|
4286
|
+
TaggedTemplateExpression = 216,
|
|
4287
|
+
TypeAssertionExpression = 217,
|
|
4288
|
+
ParenthesizedExpression = 218,
|
|
4289
|
+
FunctionExpression = 219,
|
|
4290
|
+
ArrowFunction = 220,
|
|
4291
|
+
DeleteExpression = 221,
|
|
4292
|
+
TypeOfExpression = 222,
|
|
4293
|
+
VoidExpression = 223,
|
|
4294
|
+
AwaitExpression = 224,
|
|
4295
|
+
PrefixUnaryExpression = 225,
|
|
4296
|
+
PostfixUnaryExpression = 226,
|
|
4297
|
+
BinaryExpression = 227,
|
|
4298
|
+
ConditionalExpression = 228,
|
|
4299
|
+
TemplateExpression = 229,
|
|
4300
|
+
YieldExpression = 230,
|
|
4301
|
+
SpreadElement = 231,
|
|
4302
|
+
ClassExpression = 232,
|
|
4303
|
+
OmittedExpression = 233,
|
|
4304
|
+
ExpressionWithTypeArguments = 234,
|
|
4305
|
+
AsExpression = 235,
|
|
4306
|
+
NonNullExpression = 236,
|
|
4307
|
+
MetaProperty = 237,
|
|
4308
|
+
SyntheticExpression = 238,
|
|
4309
|
+
SatisfiesExpression = 239,
|
|
4310
|
+
TemplateSpan = 240,
|
|
4311
|
+
SemicolonClassElement = 241,
|
|
4312
|
+
Block = 242,
|
|
4313
|
+
EmptyStatement = 243,
|
|
4314
|
+
VariableStatement = 244,
|
|
4315
|
+
ExpressionStatement = 245,
|
|
4316
|
+
IfStatement = 246,
|
|
4317
|
+
DoStatement = 247,
|
|
4318
|
+
WhileStatement = 248,
|
|
4319
|
+
ForStatement = 249,
|
|
4320
|
+
ForInStatement = 250,
|
|
4321
|
+
ForOfStatement = 251,
|
|
4322
|
+
ContinueStatement = 252,
|
|
4323
|
+
BreakStatement = 253,
|
|
4324
|
+
ReturnStatement = 254,
|
|
4325
|
+
WithStatement = 255,
|
|
4326
|
+
SwitchStatement = 256,
|
|
4327
|
+
LabeledStatement = 257,
|
|
4328
|
+
ThrowStatement = 258,
|
|
4329
|
+
TryStatement = 259,
|
|
4330
|
+
DebuggerStatement = 260,
|
|
4331
|
+
VariableDeclaration = 261,
|
|
4332
|
+
VariableDeclarationList = 262,
|
|
4333
|
+
FunctionDeclaration = 263,
|
|
4334
|
+
ClassDeclaration = 264,
|
|
4335
|
+
InterfaceDeclaration = 265,
|
|
4336
|
+
TypeAliasDeclaration = 266,
|
|
4337
|
+
EnumDeclaration = 267,
|
|
4338
|
+
ModuleDeclaration = 268,
|
|
4339
|
+
ModuleBlock = 269,
|
|
4340
|
+
CaseBlock = 270,
|
|
4341
|
+
NamespaceExportDeclaration = 271,
|
|
4342
|
+
ImportEqualsDeclaration = 272,
|
|
4343
|
+
ImportDeclaration = 273,
|
|
4344
|
+
ImportClause = 274,
|
|
4345
|
+
NamespaceImport = 275,
|
|
4346
|
+
NamedImports = 276,
|
|
4347
|
+
ImportSpecifier = 277,
|
|
4348
|
+
ExportAssignment = 278,
|
|
4349
|
+
ExportDeclaration = 279,
|
|
4350
|
+
NamedExports = 280,
|
|
4351
|
+
NamespaceExport = 281,
|
|
4352
|
+
ExportSpecifier = 282,
|
|
4353
|
+
MissingDeclaration = 283,
|
|
4354
|
+
ExternalModuleReference = 284,
|
|
4355
|
+
JsxElement = 285,
|
|
4356
|
+
JsxSelfClosingElement = 286,
|
|
4357
|
+
JsxOpeningElement = 287,
|
|
4358
|
+
JsxClosingElement = 288,
|
|
4359
|
+
JsxFragment = 289,
|
|
4360
|
+
JsxOpeningFragment = 290,
|
|
4361
|
+
JsxClosingFragment = 291,
|
|
4362
|
+
JsxAttribute = 292,
|
|
4363
|
+
JsxAttributes = 293,
|
|
4364
|
+
JsxSpreadAttribute = 294,
|
|
4365
|
+
JsxExpression = 295,
|
|
4366
|
+
JsxNamespacedName = 296,
|
|
4367
|
+
CaseClause = 297,
|
|
4368
|
+
DefaultClause = 298,
|
|
4369
|
+
HeritageClause = 299,
|
|
4370
|
+
CatchClause = 300,
|
|
4371
|
+
ImportAttributes = 301,
|
|
4372
|
+
ImportAttribute = 302,
|
|
4373
|
+
/** @deprecated */ AssertClause = 301,
|
|
4374
|
+
/** @deprecated */ AssertEntry = 302,
|
|
4375
|
+
/** @deprecated */ ImportTypeAssertionContainer = 303,
|
|
4376
|
+
PropertyAssignment = 304,
|
|
4377
|
+
ShorthandPropertyAssignment = 305,
|
|
4378
|
+
SpreadAssignment = 306,
|
|
4379
|
+
EnumMember = 307,
|
|
4380
|
+
SourceFile = 308,
|
|
4381
|
+
Bundle = 309,
|
|
4382
|
+
JSDocTypeExpression = 310,
|
|
4383
|
+
JSDocNameReference = 311,
|
|
4384
|
+
JSDocMemberName = 312,
|
|
4385
|
+
JSDocAllType = 313,
|
|
4386
|
+
JSDocUnknownType = 314,
|
|
4387
|
+
JSDocNullableType = 315,
|
|
4388
|
+
JSDocNonNullableType = 316,
|
|
4389
|
+
JSDocOptionalType = 317,
|
|
4390
|
+
JSDocFunctionType = 318,
|
|
4391
|
+
JSDocVariadicType = 319,
|
|
4392
|
+
JSDocNamepathType = 320,
|
|
4393
|
+
JSDoc = 321,
|
|
4339
4394
|
/** @deprecated Use SyntaxKind.JSDoc */
|
|
4340
|
-
JSDocComment =
|
|
4341
|
-
JSDocText =
|
|
4342
|
-
JSDocTypeLiteral =
|
|
4343
|
-
JSDocSignature =
|
|
4344
|
-
JSDocLink =
|
|
4345
|
-
JSDocLinkCode =
|
|
4346
|
-
JSDocLinkPlain =
|
|
4347
|
-
JSDocTag =
|
|
4348
|
-
JSDocAugmentsTag =
|
|
4349
|
-
JSDocImplementsTag =
|
|
4350
|
-
JSDocAuthorTag =
|
|
4351
|
-
JSDocDeprecatedTag =
|
|
4352
|
-
JSDocClassTag =
|
|
4353
|
-
JSDocPublicTag =
|
|
4354
|
-
JSDocPrivateTag =
|
|
4355
|
-
JSDocProtectedTag =
|
|
4356
|
-
JSDocReadonlyTag =
|
|
4357
|
-
JSDocOverrideTag =
|
|
4358
|
-
JSDocCallbackTag =
|
|
4359
|
-
JSDocOverloadTag =
|
|
4360
|
-
JSDocEnumTag =
|
|
4361
|
-
JSDocParameterTag =
|
|
4362
|
-
JSDocReturnTag =
|
|
4363
|
-
JSDocThisTag =
|
|
4364
|
-
JSDocTypeTag =
|
|
4365
|
-
JSDocTemplateTag =
|
|
4366
|
-
JSDocTypedefTag =
|
|
4367
|
-
JSDocSeeTag =
|
|
4368
|
-
JSDocPropertyTag =
|
|
4369
|
-
JSDocThrowsTag =
|
|
4370
|
-
JSDocSatisfiesTag =
|
|
4371
|
-
JSDocImportTag =
|
|
4372
|
-
SyntaxList =
|
|
4373
|
-
NotEmittedStatement =
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4395
|
+
JSDocComment = 321,
|
|
4396
|
+
JSDocText = 322,
|
|
4397
|
+
JSDocTypeLiteral = 323,
|
|
4398
|
+
JSDocSignature = 324,
|
|
4399
|
+
JSDocLink = 325,
|
|
4400
|
+
JSDocLinkCode = 326,
|
|
4401
|
+
JSDocLinkPlain = 327,
|
|
4402
|
+
JSDocTag = 328,
|
|
4403
|
+
JSDocAugmentsTag = 329,
|
|
4404
|
+
JSDocImplementsTag = 330,
|
|
4405
|
+
JSDocAuthorTag = 331,
|
|
4406
|
+
JSDocDeprecatedTag = 332,
|
|
4407
|
+
JSDocClassTag = 333,
|
|
4408
|
+
JSDocPublicTag = 334,
|
|
4409
|
+
JSDocPrivateTag = 335,
|
|
4410
|
+
JSDocProtectedTag = 336,
|
|
4411
|
+
JSDocReadonlyTag = 337,
|
|
4412
|
+
JSDocOverrideTag = 338,
|
|
4413
|
+
JSDocCallbackTag = 339,
|
|
4414
|
+
JSDocOverloadTag = 340,
|
|
4415
|
+
JSDocEnumTag = 341,
|
|
4416
|
+
JSDocParameterTag = 342,
|
|
4417
|
+
JSDocReturnTag = 343,
|
|
4418
|
+
JSDocThisTag = 344,
|
|
4419
|
+
JSDocTypeTag = 345,
|
|
4420
|
+
JSDocTemplateTag = 346,
|
|
4421
|
+
JSDocTypedefTag = 347,
|
|
4422
|
+
JSDocSeeTag = 348,
|
|
4423
|
+
JSDocPropertyTag = 349,
|
|
4424
|
+
JSDocThrowsTag = 350,
|
|
4425
|
+
JSDocSatisfiesTag = 351,
|
|
4426
|
+
JSDocImportTag = 352,
|
|
4427
|
+
SyntaxList = 353,
|
|
4428
|
+
NotEmittedStatement = 354,
|
|
4429
|
+
NotEmittedTypeElement = 355,
|
|
4430
|
+
PartiallyEmittedExpression = 356,
|
|
4431
|
+
CommaListExpression = 357,
|
|
4432
|
+
SyntheticReferenceExpression = 358,
|
|
4433
|
+
Count = 359,
|
|
4378
4434
|
FirstAssignment = 64,
|
|
4379
4435
|
LastAssignment = 79,
|
|
4380
4436
|
FirstCompoundAssignment = 65,
|
|
@@ -4382,15 +4438,15 @@ declare namespace ts {
|
|
|
4382
4438
|
FirstReservedWord = 83,
|
|
4383
4439
|
LastReservedWord = 118,
|
|
4384
4440
|
FirstKeyword = 83,
|
|
4385
|
-
LastKeyword =
|
|
4441
|
+
LastKeyword = 166,
|
|
4386
4442
|
FirstFutureReservedWord = 119,
|
|
4387
4443
|
LastFutureReservedWord = 127,
|
|
4388
|
-
FirstTypeNode =
|
|
4389
|
-
LastTypeNode =
|
|
4444
|
+
FirstTypeNode = 183,
|
|
4445
|
+
LastTypeNode = 206,
|
|
4390
4446
|
FirstPunctuation = 19,
|
|
4391
4447
|
LastPunctuation = 79,
|
|
4392
4448
|
FirstToken = 0,
|
|
4393
|
-
LastToken =
|
|
4449
|
+
LastToken = 166,
|
|
4394
4450
|
FirstTriviaToken = 2,
|
|
4395
4451
|
LastTriviaToken = 7,
|
|
4396
4452
|
FirstLiteralToken = 9,
|
|
@@ -4399,19 +4455,19 @@ declare namespace ts {
|
|
|
4399
4455
|
LastTemplateToken = 18,
|
|
4400
4456
|
FirstBinaryOperator = 30,
|
|
4401
4457
|
LastBinaryOperator = 79,
|
|
4402
|
-
FirstStatement =
|
|
4403
|
-
LastStatement =
|
|
4404
|
-
FirstNode =
|
|
4405
|
-
FirstJSDocNode =
|
|
4406
|
-
LastJSDocNode =
|
|
4407
|
-
FirstJSDocTagNode =
|
|
4408
|
-
LastJSDocTagNode =
|
|
4458
|
+
FirstStatement = 244,
|
|
4459
|
+
LastStatement = 260,
|
|
4460
|
+
FirstNode = 167,
|
|
4461
|
+
FirstJSDocNode = 310,
|
|
4462
|
+
LastJSDocNode = 352,
|
|
4463
|
+
FirstJSDocTagNode = 328,
|
|
4464
|
+
LastJSDocTagNode = 352
|
|
4409
4465
|
}
|
|
4410
4466
|
type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
4411
4467
|
type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
4412
4468
|
type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail;
|
|
4413
4469
|
type PunctuationSyntaxKind = SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.QuestionDotToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.AmpersandAmpersandEqualsToken | SyntaxKind.BarBarToken | SyntaxKind.BarBarEqualsToken | SyntaxKind.QuestionQuestionToken | SyntaxKind.QuestionQuestionEqualsToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.BacktickToken | SyntaxKind.HashToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken;
|
|
4414
|
-
type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SatisfiesKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.UsingKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword;
|
|
4470
|
+
type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeferKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SatisfiesKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.UsingKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword;
|
|
4415
4471
|
type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.ConstKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.ExportKeyword | SyntaxKind.InKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.StaticKeyword;
|
|
4416
4472
|
type KeywordTypeSyntaxKind = SyntaxKind.AnyKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VoidKeyword;
|
|
4417
4473
|
type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | LiteralSyntaxKind | PseudoLiteralSyntaxKind | PunctuationSyntaxKind | SyntaxKind.Identifier | KeywordSyntaxKind;
|
|
@@ -4829,16 +4885,14 @@ declare namespace ts {
|
|
|
4829
4885
|
interface ImportTypeAssertionContainer extends Node {
|
|
4830
4886
|
readonly kind: SyntaxKind.ImportTypeAssertionContainer;
|
|
4831
4887
|
readonly parent: ImportTypeNode;
|
|
4832
|
-
/** @deprecated */
|
|
4833
|
-
readonly assertClause: AssertClause;
|
|
4888
|
+
/** @deprecated */ readonly assertClause: AssertClause;
|
|
4834
4889
|
readonly multiLine?: boolean;
|
|
4835
4890
|
}
|
|
4836
4891
|
interface ImportTypeNode extends NodeWithTypeArguments {
|
|
4837
4892
|
readonly kind: SyntaxKind.ImportType;
|
|
4838
4893
|
readonly isTypeOf: boolean;
|
|
4839
4894
|
readonly argument: TypeNode;
|
|
4840
|
-
/** @deprecated */
|
|
4841
|
-
readonly assertions?: ImportTypeAssertionContainer;
|
|
4895
|
+
/** @deprecated */ readonly assertions?: ImportTypeAssertionContainer;
|
|
4842
4896
|
readonly attributes?: ImportAttributes;
|
|
4843
4897
|
readonly qualifier?: EntityName;
|
|
4844
4898
|
}
|
|
@@ -5256,7 +5310,7 @@ declare namespace ts {
|
|
|
5256
5310
|
readonly expression: SuperExpression;
|
|
5257
5311
|
}
|
|
5258
5312
|
interface ImportCall extends CallExpression {
|
|
5259
|
-
readonly expression: ImportExpression;
|
|
5313
|
+
readonly expression: ImportExpression | ImportDeferProperty;
|
|
5260
5314
|
}
|
|
5261
5315
|
interface ExpressionWithTypeArguments extends MemberExpression, NodeWithTypeArguments {
|
|
5262
5316
|
readonly kind: SyntaxKind.ExpressionWithTypeArguments;
|
|
@@ -5277,7 +5331,7 @@ declare namespace ts {
|
|
|
5277
5331
|
interface InstanceofExpression extends BinaryExpression {
|
|
5278
5332
|
readonly operatorToken: Token<SyntaxKind.InstanceOfKeyword>;
|
|
5279
5333
|
}
|
|
5280
|
-
type CallLikeExpression = CallExpression | NewExpression | TaggedTemplateExpression | Decorator |
|
|
5334
|
+
type CallLikeExpression = CallExpression | NewExpression | TaggedTemplateExpression | Decorator | JsxCallLike | InstanceofExpression;
|
|
5281
5335
|
interface AsExpression extends Expression {
|
|
5282
5336
|
readonly kind: SyntaxKind.AsExpression;
|
|
5283
5337
|
readonly expression: Expression;
|
|
@@ -5306,6 +5360,12 @@ declare namespace ts {
|
|
|
5306
5360
|
readonly keywordToken: SyntaxKind.NewKeyword | SyntaxKind.ImportKeyword;
|
|
5307
5361
|
readonly name: Identifier;
|
|
5308
5362
|
}
|
|
5363
|
+
interface ImportDeferProperty extends MetaProperty {
|
|
5364
|
+
readonly keywordToken: SyntaxKind.ImportKeyword;
|
|
5365
|
+
readonly name: Identifier & {
|
|
5366
|
+
readonly escapedText: __String & "defer";
|
|
5367
|
+
};
|
|
5368
|
+
}
|
|
5309
5369
|
interface JsxElement extends PrimaryExpression {
|
|
5310
5370
|
readonly kind: SyntaxKind.JsxElement;
|
|
5311
5371
|
readonly openingElement: JsxOpeningElement;
|
|
@@ -5313,6 +5373,7 @@ declare namespace ts {
|
|
|
5313
5373
|
readonly closingElement: JsxClosingElement;
|
|
5314
5374
|
}
|
|
5315
5375
|
type JsxOpeningLikeElement = JsxSelfClosingElement | JsxOpeningElement;
|
|
5376
|
+
type JsxCallLike = JsxOpeningLikeElement | JsxOpeningFragment;
|
|
5316
5377
|
type JsxAttributeLike = JsxAttribute | JsxSpreadAttribute;
|
|
5317
5378
|
type JsxAttributeName = Identifier | JsxNamespacedName;
|
|
5318
5379
|
type JsxTagNameExpression = Identifier | ThisExpression | JsxTagNamePropertyAccess | JsxNamespacedName;
|
|
@@ -5391,6 +5452,9 @@ declare namespace ts {
|
|
|
5391
5452
|
interface NotEmittedStatement extends Statement {
|
|
5392
5453
|
readonly kind: SyntaxKind.NotEmittedStatement;
|
|
5393
5454
|
}
|
|
5455
|
+
interface NotEmittedTypeElement extends TypeElement {
|
|
5456
|
+
readonly kind: SyntaxKind.NotEmittedTypeElement;
|
|
5457
|
+
}
|
|
5394
5458
|
/**
|
|
5395
5459
|
* A list of comma-separated expressions. This node is only created by transformations.
|
|
5396
5460
|
*/
|
|
@@ -5633,8 +5697,7 @@ declare namespace ts {
|
|
|
5633
5697
|
readonly importClause?: ImportClause;
|
|
5634
5698
|
/** If this is not a StringLiteral it will be a grammar error. */
|
|
5635
5699
|
readonly moduleSpecifier: Expression;
|
|
5636
|
-
/** @deprecated */
|
|
5637
|
-
readonly assertClause?: AssertClause;
|
|
5700
|
+
/** @deprecated */ readonly assertClause?: AssertClause;
|
|
5638
5701
|
readonly attributes?: ImportAttributes;
|
|
5639
5702
|
}
|
|
5640
5703
|
type NamedImportBindings = NamespaceImport | NamedImports;
|
|
@@ -5642,10 +5705,13 @@ declare namespace ts {
|
|
|
5642
5705
|
interface ImportClause extends NamedDeclaration {
|
|
5643
5706
|
readonly kind: SyntaxKind.ImportClause;
|
|
5644
5707
|
readonly parent: ImportDeclaration | JSDocImportTag;
|
|
5708
|
+
/** @deprecated Use `phaseModifier` instead */
|
|
5645
5709
|
readonly isTypeOnly: boolean;
|
|
5710
|
+
readonly phaseModifier: undefined | ImportPhaseModifierSyntaxKind;
|
|
5646
5711
|
readonly name?: Identifier;
|
|
5647
5712
|
readonly namedBindings?: NamedImportBindings;
|
|
5648
5713
|
}
|
|
5714
|
+
type ImportPhaseModifierSyntaxKind = SyntaxKind.TypeKeyword | SyntaxKind.DeferKeyword;
|
|
5649
5715
|
/** @deprecated */
|
|
5650
5716
|
type AssertionKey = ImportAttributeName;
|
|
5651
5717
|
/** @deprecated */
|
|
@@ -5689,8 +5755,7 @@ declare namespace ts {
|
|
|
5689
5755
|
readonly exportClause?: NamedExportBindings;
|
|
5690
5756
|
/** If this is not a StringLiteral it will be a grammar error. */
|
|
5691
5757
|
readonly moduleSpecifier?: Expression;
|
|
5692
|
-
/** @deprecated */
|
|
5693
|
-
readonly assertClause?: AssertClause;
|
|
5758
|
+
/** @deprecated */ readonly assertClause?: AssertClause;
|
|
5694
5759
|
readonly attributes?: ImportAttributes;
|
|
5695
5760
|
}
|
|
5696
5761
|
interface NamedImports extends Node {
|
|
@@ -6028,14 +6093,7 @@ declare namespace ts {
|
|
|
6028
6093
|
libReferenceDirectives: readonly FileReference[];
|
|
6029
6094
|
languageVariant: LanguageVariant;
|
|
6030
6095
|
isDeclarationFile: boolean;
|
|
6031
|
-
/**
|
|
6032
|
-
* lib.d.ts should have a reference comment like
|
|
6033
|
-
*
|
|
6034
|
-
* /// <reference no-default-lib="true"/>
|
|
6035
|
-
*
|
|
6036
|
-
* If any other file has this comment, it signals not to include lib.d.ts
|
|
6037
|
-
* because this containing file is intended to act as a default library.
|
|
6038
|
-
*/
|
|
6096
|
+
/** @deprecated Always false. Use a Program to determine if a file is a lib file. */
|
|
6039
6097
|
hasNoDefaultLib: boolean;
|
|
6040
6098
|
languageVersion: ScriptTarget;
|
|
6041
6099
|
/**
|
|
@@ -6283,7 +6341,7 @@ declare namespace ts {
|
|
|
6283
6341
|
getPrivateIdentifierPropertyOfType(leftType: Type, name: string, location: Node): Symbol | undefined;
|
|
6284
6342
|
getIndexInfoOfType(type: Type, kind: IndexKind): IndexInfo | undefined;
|
|
6285
6343
|
getIndexInfosOfType(type: Type): readonly IndexInfo[];
|
|
6286
|
-
getIndexInfosOfIndexSymbol: (indexSymbol: Symbol) => IndexInfo[];
|
|
6344
|
+
getIndexInfosOfIndexSymbol: (indexSymbol: Symbol, siblingSymbols?: Symbol[] | undefined) => IndexInfo[];
|
|
6287
6345
|
getSignaturesOfType(type: Type, kind: SignatureKind): readonly Signature[];
|
|
6288
6346
|
getIndexTypeOfType(type: Type, kind: IndexKind): Type | undefined;
|
|
6289
6347
|
getBaseTypes(type: InterfaceType): BaseType[];
|
|
@@ -6402,6 +6460,7 @@ declare namespace ts {
|
|
|
6402
6460
|
getBigIntType(): Type;
|
|
6403
6461
|
getBigIntLiteralType(value: PseudoBigInt): BigIntLiteralType;
|
|
6404
6462
|
getBooleanType(): Type;
|
|
6463
|
+
getUnknownType(): Type;
|
|
6405
6464
|
getFalseType(): Type;
|
|
6406
6465
|
getTrueType(): Type;
|
|
6407
6466
|
getVoidType(): Type;
|
|
@@ -6424,6 +6483,10 @@ declare namespace ts {
|
|
|
6424
6483
|
* is `never`. Instead, use `type.flags & TypeFlags.Never`.
|
|
6425
6484
|
*/
|
|
6426
6485
|
getNeverType(): Type;
|
|
6486
|
+
/**
|
|
6487
|
+
* Gets the intrinsic `object` type.
|
|
6488
|
+
*/
|
|
6489
|
+
getNonPrimitiveType(): Type;
|
|
6427
6490
|
/**
|
|
6428
6491
|
* Returns true if the "source" type is assignable to the "target" type.
|
|
6429
6492
|
*
|
|
@@ -6461,6 +6524,7 @@ declare namespace ts {
|
|
|
6461
6524
|
* and the operation is cancelled, then it should be discarded, otherwise it is safe to keep.
|
|
6462
6525
|
*/
|
|
6463
6526
|
runWithCancellationToken<T>(token: CancellationToken, cb: (checker: TypeChecker) => T): T;
|
|
6527
|
+
getTypeArgumentsForResolvedSignature(signature: Signature): readonly Type[] | undefined;
|
|
6464
6528
|
}
|
|
6465
6529
|
enum NodeBuilderFlags {
|
|
6466
6530
|
None = 0,
|
|
@@ -6687,53 +6751,53 @@ declare namespace ts {
|
|
|
6687
6751
|
enum TypeFlags {
|
|
6688
6752
|
Any = 1,
|
|
6689
6753
|
Unknown = 2,
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
Literal =
|
|
6718
|
-
Unit =
|
|
6719
|
-
Freshable =
|
|
6720
|
-
StringOrNumberLiteral =
|
|
6721
|
-
PossiblyFalsy =
|
|
6722
|
-
StringLike =
|
|
6723
|
-
NumberLike =
|
|
6724
|
-
BigIntLike =
|
|
6725
|
-
BooleanLike =
|
|
6726
|
-
EnumLike =
|
|
6727
|
-
ESSymbolLike =
|
|
6728
|
-
VoidLike =
|
|
6729
|
-
UnionOrIntersection =
|
|
6730
|
-
StructuredType =
|
|
6731
|
-
TypeVariable =
|
|
6732
|
-
InstantiableNonPrimitive =
|
|
6733
|
-
InstantiablePrimitive =
|
|
6734
|
-
Instantiable =
|
|
6735
|
-
StructuredOrInstantiable =
|
|
6736
|
-
Narrowable =
|
|
6754
|
+
Undefined = 4,
|
|
6755
|
+
Null = 8,
|
|
6756
|
+
Void = 16,
|
|
6757
|
+
String = 32,
|
|
6758
|
+
Number = 64,
|
|
6759
|
+
BigInt = 128,
|
|
6760
|
+
Boolean = 256,
|
|
6761
|
+
ESSymbol = 512,
|
|
6762
|
+
StringLiteral = 1024,
|
|
6763
|
+
NumberLiteral = 2048,
|
|
6764
|
+
BigIntLiteral = 4096,
|
|
6765
|
+
BooleanLiteral = 8192,
|
|
6766
|
+
UniqueESSymbol = 16384,
|
|
6767
|
+
EnumLiteral = 32768,
|
|
6768
|
+
Enum = 65536,
|
|
6769
|
+
NonPrimitive = 131072,
|
|
6770
|
+
Never = 262144,
|
|
6771
|
+
TypeParameter = 524288,
|
|
6772
|
+
Object = 1048576,
|
|
6773
|
+
Index = 2097152,
|
|
6774
|
+
TemplateLiteral = 4194304,
|
|
6775
|
+
StringMapping = 8388608,
|
|
6776
|
+
Substitution = 16777216,
|
|
6777
|
+
IndexedAccess = 33554432,
|
|
6778
|
+
Conditional = 67108864,
|
|
6779
|
+
Union = 134217728,
|
|
6780
|
+
Intersection = 268435456,
|
|
6781
|
+
Literal = 15360,
|
|
6782
|
+
Unit = 97292,
|
|
6783
|
+
Freshable = 80896,
|
|
6784
|
+
StringOrNumberLiteral = 3072,
|
|
6785
|
+
PossiblyFalsy = 15868,
|
|
6786
|
+
StringLike = 12583968,
|
|
6787
|
+
NumberLike = 67648,
|
|
6788
|
+
BigIntLike = 4224,
|
|
6789
|
+
BooleanLike = 8448,
|
|
6790
|
+
EnumLike = 98304,
|
|
6791
|
+
ESSymbolLike = 16896,
|
|
6792
|
+
VoidLike = 20,
|
|
6793
|
+
UnionOrIntersection = 402653184,
|
|
6794
|
+
StructuredType = 403701760,
|
|
6795
|
+
TypeVariable = 34078720,
|
|
6796
|
+
InstantiableNonPrimitive = 117964800,
|
|
6797
|
+
InstantiablePrimitive = 14680064,
|
|
6798
|
+
Instantiable = 132644864,
|
|
6799
|
+
StructuredOrInstantiable = 536346624,
|
|
6800
|
+
Narrowable = 536575971
|
|
6737
6801
|
}
|
|
6738
6802
|
type DestructuringPattern = BindingPattern | ObjectLiteralExpression | ArrayLiteralExpression;
|
|
6739
6803
|
interface Type {
|
|
@@ -6806,11 +6870,11 @@ declare namespace ts {
|
|
|
6806
6870
|
JSLiteral = 4096,
|
|
6807
6871
|
FreshLiteral = 8192,
|
|
6808
6872
|
ArrayLiteral = 16384,
|
|
6873
|
+
SingleSignatureType = 134217728,
|
|
6809
6874
|
ClassOrInterface = 3,
|
|
6810
6875
|
ContainsSpread = 2097152,
|
|
6811
6876
|
ObjectRestType = 4194304,
|
|
6812
|
-
InstantiationExpressionType = 8388608
|
|
6813
|
-
SingleSignatureType = 134217728
|
|
6877
|
+
InstantiationExpressionType = 8388608
|
|
6814
6878
|
}
|
|
6815
6879
|
interface ObjectType extends Type {
|
|
6816
6880
|
objectFlags: ObjectFlags;
|
|
@@ -6954,11 +7018,15 @@ declare namespace ts {
|
|
|
6954
7018
|
String = 0,
|
|
6955
7019
|
Number = 1
|
|
6956
7020
|
}
|
|
7021
|
+
type ElementWithComputedPropertyName = (ClassElement | ObjectLiteralElement) & {
|
|
7022
|
+
name: ComputedPropertyName;
|
|
7023
|
+
};
|
|
6957
7024
|
interface IndexInfo {
|
|
6958
7025
|
keyType: Type;
|
|
6959
7026
|
type: Type;
|
|
6960
7027
|
isReadonly: boolean;
|
|
6961
7028
|
declaration?: IndexSignatureDeclaration;
|
|
7029
|
+
components?: ElementWithComputedPropertyName[];
|
|
6962
7030
|
}
|
|
6963
7031
|
enum InferencePriority {
|
|
6964
7032
|
None = 0,
|
|
@@ -7029,6 +7097,7 @@ declare namespace ts {
|
|
|
7029
7097
|
Message = 3
|
|
7030
7098
|
}
|
|
7031
7099
|
enum ModuleResolutionKind {
|
|
7100
|
+
/** @deprecated */
|
|
7032
7101
|
Classic = 1,
|
|
7033
7102
|
/**
|
|
7034
7103
|
* @deprecated
|
|
@@ -7036,6 +7105,9 @@ declare namespace ts {
|
|
|
7036
7105
|
* Use the new name or consider switching to a modern module resolution target.
|
|
7037
7106
|
*/
|
|
7038
7107
|
NodeJs = 2,
|
|
7108
|
+
/**
|
|
7109
|
+
* @deprecated
|
|
7110
|
+
*/
|
|
7039
7111
|
Node10 = 2,
|
|
7040
7112
|
Node16 = 3,
|
|
7041
7113
|
NodeNext = 99,
|
|
@@ -7098,6 +7170,7 @@ declare namespace ts {
|
|
|
7098
7170
|
allowUnreachableCode?: boolean;
|
|
7099
7171
|
allowUnusedLabels?: boolean;
|
|
7100
7172
|
alwaysStrict?: boolean;
|
|
7173
|
+
/** @deprecated */
|
|
7101
7174
|
baseUrl?: string;
|
|
7102
7175
|
/** @deprecated */
|
|
7103
7176
|
charset?: string;
|
|
@@ -7111,6 +7184,7 @@ declare namespace ts {
|
|
|
7111
7184
|
disableSourceOfProjectReferenceRedirect?: boolean;
|
|
7112
7185
|
disableSolutionSearching?: boolean;
|
|
7113
7186
|
disableReferencedProjectLoad?: boolean;
|
|
7187
|
+
/** @deprecated */
|
|
7114
7188
|
downlevelIteration?: boolean;
|
|
7115
7189
|
emitBOM?: boolean;
|
|
7116
7190
|
emitDecoratorMetadata?: boolean;
|
|
@@ -7129,6 +7203,7 @@ declare namespace ts {
|
|
|
7129
7203
|
/** @deprecated */
|
|
7130
7204
|
keyofStringsOnly?: boolean;
|
|
7131
7205
|
lib?: string[];
|
|
7206
|
+
libReplacement?: boolean;
|
|
7132
7207
|
locale?: string;
|
|
7133
7208
|
mapRoot?: string;
|
|
7134
7209
|
maxNodeModuleJsDepth?: number;
|
|
@@ -7138,6 +7213,7 @@ declare namespace ts {
|
|
|
7138
7213
|
moduleDetection?: ModuleDetectionKind;
|
|
7139
7214
|
newLine?: NewLineKind;
|
|
7140
7215
|
noEmit?: boolean;
|
|
7216
|
+
noCheck?: boolean;
|
|
7141
7217
|
noEmitHelpers?: boolean;
|
|
7142
7218
|
noEmitOnError?: boolean;
|
|
7143
7219
|
noErrorTruncation?: boolean;
|
|
@@ -7177,6 +7253,7 @@ declare namespace ts {
|
|
|
7177
7253
|
removeComments?: boolean;
|
|
7178
7254
|
resolvePackageJsonExports?: boolean;
|
|
7179
7255
|
resolvePackageJsonImports?: boolean;
|
|
7256
|
+
rewriteRelativeImportExtensions?: boolean;
|
|
7180
7257
|
rootDir?: string;
|
|
7181
7258
|
rootDirs?: string[];
|
|
7182
7259
|
skipLibCheck?: boolean;
|
|
@@ -7203,6 +7280,7 @@ declare namespace ts {
|
|
|
7203
7280
|
/** Paths used to compute primary types search locations */
|
|
7204
7281
|
typeRoots?: string[];
|
|
7205
7282
|
verbatimModuleSyntax?: boolean;
|
|
7283
|
+
erasableSyntaxOnly?: boolean;
|
|
7206
7284
|
esModuleInterop?: boolean;
|
|
7207
7285
|
useDefineForClassFields?: boolean;
|
|
7208
7286
|
[option: string]: CompilerOptionsValue | TsConfigSourceFile | undefined;
|
|
@@ -7224,16 +7302,22 @@ declare namespace ts {
|
|
|
7224
7302
|
[option: string]: CompilerOptionsValue | undefined;
|
|
7225
7303
|
}
|
|
7226
7304
|
enum ModuleKind {
|
|
7305
|
+
/** @deprecated */
|
|
7227
7306
|
None = 0,
|
|
7228
7307
|
CommonJS = 1,
|
|
7308
|
+
/** @deprecated */
|
|
7229
7309
|
AMD = 2,
|
|
7310
|
+
/** @deprecated */
|
|
7230
7311
|
UMD = 3,
|
|
7312
|
+
/** @deprecated */
|
|
7231
7313
|
System = 4,
|
|
7232
7314
|
ES2015 = 5,
|
|
7233
7315
|
ES2020 = 6,
|
|
7234
7316
|
ES2022 = 7,
|
|
7235
7317
|
ESNext = 99,
|
|
7236
7318
|
Node16 = 100,
|
|
7319
|
+
Node18 = 101,
|
|
7320
|
+
Node20 = 102,
|
|
7237
7321
|
NodeNext = 199,
|
|
7238
7322
|
Preserve = 200
|
|
7239
7323
|
}
|
|
@@ -7277,6 +7361,7 @@ declare namespace ts {
|
|
|
7277
7361
|
enum ScriptTarget {
|
|
7278
7362
|
/** @deprecated */
|
|
7279
7363
|
ES3 = 0,
|
|
7364
|
+
/** @deprecated */
|
|
7280
7365
|
ES5 = 1,
|
|
7281
7366
|
ES2015 = 2,
|
|
7282
7367
|
ES2016 = 3,
|
|
@@ -7287,9 +7372,12 @@ declare namespace ts {
|
|
|
7287
7372
|
ES2021 = 8,
|
|
7288
7373
|
ES2022 = 9,
|
|
7289
7374
|
ES2023 = 10,
|
|
7375
|
+
ES2024 = 11,
|
|
7376
|
+
ES2025 = 12,
|
|
7290
7377
|
ESNext = 99,
|
|
7291
7378
|
JSON = 100,
|
|
7292
|
-
Latest = 99
|
|
7379
|
+
Latest = 99,
|
|
7380
|
+
LatestStandard = 12
|
|
7293
7381
|
}
|
|
7294
7382
|
enum LanguageVariant {
|
|
7295
7383
|
Standard = 0,
|
|
@@ -7525,8 +7613,9 @@ declare namespace ts {
|
|
|
7525
7613
|
NonNullAssertions = 4,
|
|
7526
7614
|
PartiallyEmittedExpressions = 8,
|
|
7527
7615
|
ExpressionsWithTypeArguments = 16,
|
|
7528
|
-
|
|
7529
|
-
|
|
7616
|
+
Satisfies = 32,
|
|
7617
|
+
Assertions = 38,
|
|
7618
|
+
All = 63,
|
|
7530
7619
|
ExcludeJSDocTypeAssertion = -2147483648
|
|
7531
7620
|
}
|
|
7532
7621
|
type ImmediatelyInvokedFunctionExpression = CallExpression & {
|
|
@@ -7812,20 +7901,16 @@ declare namespace ts {
|
|
|
7812
7901
|
updateImportEqualsDeclaration(node: ImportEqualsDeclaration, modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
7813
7902
|
createImportDeclaration(modifiers: readonly ModifierLike[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, attributes?: ImportAttributes): ImportDeclaration;
|
|
7814
7903
|
updateImportDeclaration(node: ImportDeclaration, modifiers: readonly ModifierLike[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, attributes: ImportAttributes | undefined): ImportDeclaration;
|
|
7815
|
-
createImportClause(
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
/** @deprecated */
|
|
7820
|
-
updateAssertClause(node: AssertClause, elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
7821
|
-
/** @deprecated */
|
|
7822
|
-
|
|
7823
|
-
/** @deprecated */
|
|
7824
|
-
|
|
7825
|
-
/** @deprecated */
|
|
7826
|
-
createImportTypeAssertionContainer(clause: AssertClause, multiLine?: boolean): ImportTypeAssertionContainer;
|
|
7827
|
-
/** @deprecated */
|
|
7828
|
-
updateImportTypeAssertionContainer(node: ImportTypeAssertionContainer, clause: AssertClause, multiLine?: boolean): ImportTypeAssertionContainer;
|
|
7904
|
+
createImportClause(phaseModifier: ImportPhaseModifierSyntaxKind | undefined, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
7905
|
+
/** @deprecated */ createImportClause(isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
7906
|
+
updateImportClause(node: ImportClause, phaseModifier: ImportPhaseModifierSyntaxKind | undefined, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
7907
|
+
/** @deprecated */ updateImportClause(node: ImportClause, isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
7908
|
+
/** @deprecated */ createAssertClause(elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
7909
|
+
/** @deprecated */ updateAssertClause(node: AssertClause, elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
7910
|
+
/** @deprecated */ createAssertEntry(name: AssertionKey, value: Expression): AssertEntry;
|
|
7911
|
+
/** @deprecated */ updateAssertEntry(node: AssertEntry, name: AssertionKey, value: Expression): AssertEntry;
|
|
7912
|
+
/** @deprecated */ createImportTypeAssertionContainer(clause: AssertClause, multiLine?: boolean): ImportTypeAssertionContainer;
|
|
7913
|
+
/** @deprecated */ updateImportTypeAssertionContainer(node: ImportTypeAssertionContainer, clause: AssertClause, multiLine?: boolean): ImportTypeAssertionContainer;
|
|
7829
7914
|
createImportAttributes(elements: NodeArray<ImportAttribute>, multiLine?: boolean): ImportAttributes;
|
|
7830
7915
|
updateImportAttributes(node: ImportAttributes, elements: NodeArray<ImportAttribute>, multiLine?: boolean): ImportAttributes;
|
|
7831
7916
|
createImportAttribute(name: ImportAttributeName, value: Expression): ImportAttribute;
|
|
@@ -7975,6 +8060,7 @@ declare namespace ts {
|
|
|
7975
8060
|
createSourceFile(statements: readonly Statement[], endOfFileToken: EndOfFileToken, flags: NodeFlags): SourceFile;
|
|
7976
8061
|
updateSourceFile(node: SourceFile, statements: readonly Statement[], isDeclarationFile?: boolean, referencedFiles?: readonly FileReference[], typeReferences?: readonly FileReference[], hasNoDefaultLib?: boolean, libReferences?: readonly FileReference[]): SourceFile;
|
|
7977
8062
|
createNotEmittedStatement(original: Node): NotEmittedStatement;
|
|
8063
|
+
createNotEmittedTypeElement(): NotEmittedTypeElement;
|
|
7978
8064
|
createPartiallyEmittedExpression(expression: Expression, original?: Node): PartiallyEmittedExpression;
|
|
7979
8065
|
updatePartiallyEmittedExpression(node: PartiallyEmittedExpression, expression: Expression): PartiallyEmittedExpression;
|
|
7980
8066
|
createCommaListExpression(elements: readonly Expression[]): CommaListExpression;
|
|
@@ -8302,8 +8388,7 @@ declare namespace ts {
|
|
|
8302
8388
|
ArrayBindingPatternElements = 524880,
|
|
8303
8389
|
ObjectLiteralExpressionProperties = 526226,
|
|
8304
8390
|
ImportAttributes = 526226,
|
|
8305
|
-
/** @deprecated */
|
|
8306
|
-
ImportClauseEntries = 526226,
|
|
8391
|
+
/** @deprecated */ ImportClauseEntries = 526226,
|
|
8307
8392
|
ArrayLiteralExpressionElements = 8914,
|
|
8308
8393
|
CommaListElements = 528,
|
|
8309
8394
|
CallExpressionArguments = 2576,
|
|
@@ -8496,6 +8581,12 @@ declare namespace ts {
|
|
|
8496
8581
|
readonly displayPartsForJSDoc?: boolean;
|
|
8497
8582
|
readonly generateReturnInDocTemplate?: boolean;
|
|
8498
8583
|
readonly disableLineTextInReferences?: boolean;
|
|
8584
|
+
/**
|
|
8585
|
+
* A positive integer indicating the maximum length of a hover text before it is truncated.
|
|
8586
|
+
*
|
|
8587
|
+
* Default: `500`
|
|
8588
|
+
*/
|
|
8589
|
+
readonly maximumHoverLength?: number;
|
|
8499
8590
|
}
|
|
8500
8591
|
type OrganizeImportsTypeOrder = "last" | "inline" | "first";
|
|
8501
8592
|
/** Represents a bigint literal value without requiring bigint support */
|
|
@@ -8857,6 +8948,7 @@ declare namespace ts {
|
|
|
8857
8948
|
function isTypeOnlyImportDeclaration(node: Node): node is TypeOnlyImportDeclaration;
|
|
8858
8949
|
function isTypeOnlyExportDeclaration(node: Node): node is TypeOnlyExportDeclaration;
|
|
8859
8950
|
function isTypeOnlyImportOrExportDeclaration(node: Node): node is TypeOnlyAliasDeclaration;
|
|
8951
|
+
function isPartOfTypeOnlyImportOrExportDeclaration(node: Node): boolean;
|
|
8860
8952
|
function isStringTextContainingNode(node: Node): node is StringLiteral | TemplateLiteralToken;
|
|
8861
8953
|
function isImportAttributeName(node: Node): node is ImportAttributeName;
|
|
8862
8954
|
function isModifier(node: Node): node is Modifier;
|
|
@@ -8905,6 +8997,7 @@ declare namespace ts {
|
|
|
8905
8997
|
function isJsxAttributeLike(node: Node): node is JsxAttributeLike;
|
|
8906
8998
|
function isStringLiteralOrJsxExpression(node: Node): node is StringLiteral | JsxExpression;
|
|
8907
8999
|
function isJsxOpeningLikeElement(node: Node): node is JsxOpeningLikeElement;
|
|
9000
|
+
function isJsxCallLike(node: Node): node is JsxCallLike;
|
|
8908
9001
|
function isCaseOrDefaultClause(node: Node): node is CaseOrDefaultClause;
|
|
8909
9002
|
/** True if node is of a kind that may contain comment text. */
|
|
8910
9003
|
function isJSDocCommentContainingNode(node: Node): boolean;
|
|
@@ -9283,6 +9376,7 @@ declare namespace ts {
|
|
|
9283
9376
|
jsDocParsingMode?: JSDocParsingMode;
|
|
9284
9377
|
}
|
|
9285
9378
|
function parseCommandLine(commandLine: readonly string[], readFile?: (path: string) => string | undefined): ParsedCommandLine;
|
|
9379
|
+
function parseBuildCommand(commandLine: readonly string[]): ParsedBuildCommand;
|
|
9286
9380
|
/**
|
|
9287
9381
|
* Reads the config file, reports errors if any and exits if the config file cannot be found
|
|
9288
9382
|
*/
|
|
@@ -9337,6 +9431,13 @@ declare namespace ts {
|
|
|
9337
9431
|
options: TypeAcquisition;
|
|
9338
9432
|
errors: Diagnostic[];
|
|
9339
9433
|
};
|
|
9434
|
+
/** Parsed command line for build */
|
|
9435
|
+
interface ParsedBuildCommand {
|
|
9436
|
+
buildOptions: BuildOptions;
|
|
9437
|
+
watchOptions: WatchOptions | undefined;
|
|
9438
|
+
projects: string[];
|
|
9439
|
+
errors: Diagnostic[];
|
|
9440
|
+
}
|
|
9340
9441
|
type DiagnosticReporter = (diagnostic: Diagnostic) => void;
|
|
9341
9442
|
/**
|
|
9342
9443
|
* Reports config file diagnostics
|
|
@@ -9378,7 +9479,7 @@ declare namespace ts {
|
|
|
9378
9479
|
* Given a set of options, returns the set of type directive names
|
|
9379
9480
|
* that should be included for this program automatically.
|
|
9380
9481
|
* This list could either come from the config file,
|
|
9381
|
-
* or from enumerating the types root + initial secondary types lookup location.
|
|
9482
|
+
* and/or from enumerating the types root + initial secondary types lookup location given "*" compat wildcard.
|
|
9382
9483
|
* More type directives might appear in the program later as a result of loading actual source files;
|
|
9383
9484
|
* this list is only the set of defaults that are implicitly included.
|
|
9384
9485
|
*/
|
|
@@ -9820,14 +9921,7 @@ declare namespace ts {
|
|
|
9820
9921
|
}
|
|
9821
9922
|
function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram | undefined;
|
|
9822
9923
|
function createIncrementalCompilerHost(options: CompilerOptions, system?: System): CompilerHost;
|
|
9823
|
-
function createIncrementalProgram<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>({
|
|
9824
|
-
rootNames,
|
|
9825
|
-
options,
|
|
9826
|
-
configFileParsingDiagnostics,
|
|
9827
|
-
projectReferences,
|
|
9828
|
-
host,
|
|
9829
|
-
createProgram
|
|
9830
|
-
}: IncrementalProgramOptions<T>): T;
|
|
9924
|
+
function createIncrementalProgram<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>({ rootNames, options, configFileParsingDiagnostics, projectReferences, host, createProgram }: IncrementalProgramOptions<T>): T;
|
|
9831
9925
|
/**
|
|
9832
9926
|
* Create the watch compiler host for either configFile or fileNames and its options
|
|
9833
9927
|
*/
|
|
@@ -10068,6 +10162,8 @@ declare namespace ts {
|
|
|
10068
10162
|
emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult | undefined;
|
|
10069
10163
|
}
|
|
10070
10164
|
type InvalidatedProject<T extends BuilderProgram> = UpdateOutputFileStampsProject | BuildInvalidedProject<T>;
|
|
10165
|
+
/** Returns true if commandline is --build and needs to be parsed useing parseBuildCommand */
|
|
10166
|
+
function isBuildCommand(commandLineArgs: readonly string[]): boolean;
|
|
10071
10167
|
function getDefaultFormatCodeSettings(newLineCharacter?: string): FormatCodeSettings;
|
|
10072
10168
|
/**
|
|
10073
10169
|
* Represents an immutable snapshot of a script at a specified time.Once acquired, the
|
|
@@ -10099,6 +10195,7 @@ declare namespace ts {
|
|
|
10099
10195
|
libReferenceDirectives: FileReference[];
|
|
10100
10196
|
importedFiles: FileReference[];
|
|
10101
10197
|
ambientExternalModules?: string[];
|
|
10198
|
+
/** @deprecated Always false. Use a Program to determine if a file is a lib file. */
|
|
10102
10199
|
isLibFile: boolean;
|
|
10103
10200
|
}
|
|
10104
10201
|
interface HostCancellationToken {
|
|
@@ -10265,8 +10362,9 @@ declare namespace ts {
|
|
|
10265
10362
|
*
|
|
10266
10363
|
* @param fileName The path to the file
|
|
10267
10364
|
* @param position A zero-based index of the character where you want the quick info
|
|
10365
|
+
* @param maximumLength Maximum length of a quickinfo text before it is truncated.
|
|
10268
10366
|
*/
|
|
10269
|
-
getQuickInfoAtPosition(fileName: string, position: number): QuickInfo | undefined;
|
|
10367
|
+
getQuickInfoAtPosition(fileName: string, position: number, maximumLength?: number): QuickInfo | undefined;
|
|
10270
10368
|
getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): TextSpan | undefined;
|
|
10271
10369
|
getBreakpointStatementAtPosition(fileName: string, position: number): TextSpan | undefined;
|
|
10272
10370
|
getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems | undefined;
|
|
@@ -10342,6 +10440,7 @@ declare namespace ts {
|
|
|
10342
10440
|
uncommentSelection(fileName: string, textRange: TextRange): TextChange[];
|
|
10343
10441
|
getSupportedCodeFixes(fileName?: string): readonly string[];
|
|
10344
10442
|
dispose(): void;
|
|
10443
|
+
preparePasteEditsForFile(fileName: string, copiedTextRanges: TextRange[]): boolean;
|
|
10345
10444
|
getPasteEdits(args: PasteEditsArgs, formatOptions: FormatCodeSettings): PasteEdits;
|
|
10346
10445
|
}
|
|
10347
10446
|
interface JsxClosingTagInfo {
|
|
@@ -10852,6 +10951,7 @@ declare namespace ts {
|
|
|
10852
10951
|
displayParts?: SymbolDisplayPart[];
|
|
10853
10952
|
documentation?: SymbolDisplayPart[];
|
|
10854
10953
|
tags?: JSDocTagInfo[];
|
|
10954
|
+
canIncreaseVerbosityLevel?: boolean;
|
|
10855
10955
|
}
|
|
10856
10956
|
type RenameInfo = RenameInfoSuccess | RenameInfoFailure;
|
|
10857
10957
|
interface RenameInfoSuccess {
|
|
@@ -11495,20 +11595,20 @@ declare namespace ts {
|
|
|
11495
11595
|
//#region temp/packages/compiler-sfc/src/script/resolveType.d.ts
|
|
11496
11596
|
export type SimpleTypeResolveOptions = Partial<Pick<SFCScriptCompileOptions, "globalTypeFiles" | "fs" | "babelParserPlugins" | "isProd">>;
|
|
11497
11597
|
/**
|
|
11498
|
-
* TypeResolveContext is compatible with ScriptCompileContext
|
|
11499
|
-
* but also allows a simpler version of it with minimal required properties
|
|
11500
|
-
* when resolveType needs to be used in a non-SFC context, e.g. in a babel
|
|
11501
|
-
* plugin. The simplest context can be just:
|
|
11502
|
-
* ```ts
|
|
11503
|
-
* const ctx: SimpleTypeResolveContext = {
|
|
11504
|
-
* filename: '...',
|
|
11505
|
-
* source: '...',
|
|
11506
|
-
* options: {},
|
|
11507
|
-
* error() {},
|
|
11508
|
-
* ast: []
|
|
11509
|
-
* }
|
|
11510
|
-
* ```
|
|
11511
|
-
*/
|
|
11598
|
+
* TypeResolveContext is compatible with ScriptCompileContext
|
|
11599
|
+
* but also allows a simpler version of it with minimal required properties
|
|
11600
|
+
* when resolveType needs to be used in a non-SFC context, e.g. in a babel
|
|
11601
|
+
* plugin. The simplest context can be just:
|
|
11602
|
+
* ```ts
|
|
11603
|
+
* const ctx: SimpleTypeResolveContext = {
|
|
11604
|
+
* filename: '...',
|
|
11605
|
+
* source: '...',
|
|
11606
|
+
* options: {},
|
|
11607
|
+
* error() {},
|
|
11608
|
+
* ast: []
|
|
11609
|
+
* }
|
|
11610
|
+
* ```
|
|
11611
|
+
*/
|
|
11512
11612
|
export type SimpleTypeResolveContext = Pick<ScriptCompileContext, "source" | "filename" | "error" | "warn" | "helper" | "getString" | "propsTypeDecl" | "propsRuntimeDefaults" | "propsDestructuredBindings" | "emitsTypeDecl" | "isCE"> & Partial<Pick<ScriptCompileContext, "scope" | "globalScopes" | "deps" | "fs">> & {
|
|
11513
11613
|
ast: Statement$1[];
|
|
11514
11614
|
options: SimpleTypeResolveOptions;
|
|
@@ -11546,19 +11646,19 @@ interface ResolvedElements {
|
|
|
11546
11646
|
calls?: (TSCallSignatureDeclaration | TSFunctionType)[];
|
|
11547
11647
|
}
|
|
11548
11648
|
/**
|
|
11549
|
-
* Resolve arbitrary type node to a list of type elements that can be then
|
|
11550
|
-
* mapped to runtime props or emits.
|
|
11551
|
-
*/
|
|
11649
|
+
* Resolve arbitrary type node to a list of type elements that can be then
|
|
11650
|
+
* mapped to runtime props or emits.
|
|
11651
|
+
*/
|
|
11552
11652
|
export declare function resolveTypeElements(ctx: TypeResolveContext, node: Node$1 & MaybeWithScope & {
|
|
11553
11653
|
_resolvedElements?: ResolvedElements;
|
|
11554
11654
|
}, scope?: TypeScope, typeParameters?: Record<string, Node$1>): ResolvedElements;
|
|
11555
11655
|
/**
|
|
11556
|
-
* @private
|
|
11557
|
-
*/
|
|
11656
|
+
* @private
|
|
11657
|
+
*/
|
|
11558
11658
|
export declare function registerTS(_loadTS: () => typeof ts): void;
|
|
11559
11659
|
/**
|
|
11560
|
-
* @private
|
|
11561
|
-
*/
|
|
11660
|
+
* @private
|
|
11661
|
+
*/
|
|
11562
11662
|
export declare function invalidateTypeCache(filename: string): void;
|
|
11563
11663
|
export declare function inferRuntimeType(ctx: TypeResolveContext, node: Node$1 & MaybeWithScope, scope?: TypeScope, isKeyOf?: boolean, typeParameters?: Record<string, Node$1>): string[];
|
|
11564
11664
|
//#endregion
|
|
@@ -11571,10 +11671,10 @@ export declare const parseCache: Map<string, SFCParseResult>;
|
|
|
11571
11671
|
export declare const errorMessages: Record<number, string>;
|
|
11572
11672
|
export declare const walk: any;
|
|
11573
11673
|
/**
|
|
11574
|
-
* @deprecated this is preserved to avoid breaking vite-plugin-vue < 5.0
|
|
11575
|
-
* with reactivityTransform: true. The desired behavior should be silently
|
|
11576
|
-
* ignoring the option instead of breaking.
|
|
11577
|
-
*/
|
|
11674
|
+
* @deprecated this is preserved to avoid breaking vite-plugin-vue < 5.0
|
|
11675
|
+
* with reactivityTransform: true. The desired behavior should be silently
|
|
11676
|
+
* ignoring the option instead of breaking.
|
|
11677
|
+
*/
|
|
11578
11678
|
export declare const shouldTransformRef: () => boolean;
|
|
11579
11679
|
//#endregion
|
|
11580
11680
|
export { type BindingMetadata, type CompilerError, type CompilerOptions$1 as CompilerOptions, MagicString, babelParse, extractIdentifiers, generateCodeFrame, isInDestructureAssignment, isStaticProperty, walkIdentifiers };
|