@vue/compiler-sfc 3.6.0-rc.5 → 3.6.0-rc.7

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.
@@ -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
- * If base is provided, instead of transforming relative asset urls into
14
- * imports, they will be directly rewritten to absolute urls.
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
- * If true, also processes absolute urls.
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
- * In some cases, compiler-sfc may not be inside the project root (e.g. when
58
- * linked or globally installed). In such cases a custom `require` can be
59
- * passed to correctly resolve the preprocessors.
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
- * Configure what tags/attributes to transform into asset url imports,
64
- * or disable the transform altogether with `false`.
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
- * Scope ID for prefixing injected CSS variables.
74
- * This must be consistent with the `id` passed to `compileStyle`.
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
- * Production mode. Used to determine whether to generate hashed CSS variables
79
- */
80
+ * Production mode. Used to determine whether to generate hashed CSS variables
81
+ */
80
82
  isProd?: boolean;
81
83
  /**
82
- * Enable/disable source map. Defaults to true.
83
- */
84
+ * Enable/disable source map. Defaults to true.
85
+ */
84
86
  sourceMap?: boolean;
85
87
  /**
86
- * https://babeljs.io/docs/en/babel-parser#plugins
87
- */
88
+ * https://babeljs.io/docs/en/babel-parser#plugins
89
+ */
88
90
  babelParserPlugins?: ParserPlugin[];
89
91
  /**
90
- * A list of files to parse for global types to be made available for type
91
- * resolving in SFC macros. The list must be fully resolved file system paths.
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
- * Compile the template and inline the resulting render function
96
- * directly inside setup().
97
- * - Only affects `<script setup>`
98
- * - This should only be used in production because it prevents the template
99
- * from being hot-reloaded separately from component state.
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
- * Generate the final component as a variable instead of default export.
104
- * This is useful in e.g. @vitejs/plugin-vue where the script needs to be
105
- * placed inside the main module.
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
- * Options for template compilation when inlining. Note these are options that
110
- * would normally be passed to `compiler-sfc`'s own `compileTemplate()`, not
111
- * options passed to `compiler-dom`.
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
- * Hoist <script setup> static constants.
116
- * - Only enables when one `<script setup>` exists.
117
- * @default true
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
- * Set to `false` to disable reactive destructure for `defineProps` (pre-3.5
122
- * behavior), or set to `'error'` to throw hard error on props destructures.
123
- * @default true
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
- * File system access methods to be used when resolving types
128
- * imported in SFC macros. Defaults to ts.sys in Node.js, can be overwritten
129
- * to use a virtual file system for use in browsers (e.g. in REPLs)
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
- * Transform Vue SFCs into custom elements.
138
- */
139
+ * Transform Vue SFCs into custom elements.
140
+ */
139
141
  customElement?: boolean | ((filename: string) => boolean);
140
142
  /**
141
- * Force to use of Vapor mode.
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?: _$_babel_types0.Statement[];
189
- scriptSetupAst?: _$_babel_types0.Statement[];
190
+ scriptAst?: import("@babel/types").Statement[];
191
+ scriptSetupAst?: import("@babel/types").Statement[];
190
192
  warnings?: string[];
191
193
  /**
192
- * Fully resolved dependency file paths (unix slashes) with imported types
193
- * used in macros, used for HMR cache busting in @vitejs/plugin-vue and
194
- * vue-loader.
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
- * whether the SFC uses :slotted() modifier.
214
- * this is used as a compiler optimization hint.
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
- * compare with an existing descriptor to determine whether HMR should perform
220
- * a reload vs. re-render.
221
- *
222
- * Note: this comparison assumes the prev/next script are already identical,
223
- * and only checks the special case where <script setup lang="ts"> unused import
224
- * pruning result changes due to template changes.
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
- * @deprecated use `inMap` instead.
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
- * returned from data()
311
- */
312
+ * returned from data()
313
+ */
312
314
  DATA = "data",
313
315
  /**
314
- * declared as a prop
315
- */
316
+ * declared as a prop
317
+ */
316
318
  PROPS = "props",
317
319
  /**
318
- * a local alias of a `<script setup>` destructured prop.
319
- * the original is stored in __propsAliases of the bindingMetadata object.
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
- * a let binding (may or may not be a ref)
324
- */
325
+ * a let binding (may or may not be a ref)
326
+ */
325
327
  SETUP_LET = "setup-let",
326
328
  /**
327
- * a const binding that can never be a ref.
328
- * these bindings don't need `unref()` calls when processed in inlined
329
- * template expressions.
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
- * a const binding that does not need `unref()`, but may be mutated.
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
- * a const binding that may be a ref.
338
- */
339
+ * a const binding that may be a ref.
340
+ */
339
341
  SETUP_MAYBE_REF = "setup-maybe-ref",
340
342
  /**
341
- * bindings that are guaranteed to be refs
342
- */
343
+ * bindings that are guaranteed to be refs
344
+ */
343
345
  SETUP_REF = "setup-ref",
344
346
  /**
345
- * declared by other options, e.g. computed, inject
346
- */
347
+ * declared by other options, e.g. computed, inject
348
+ */
347
349
  OPTIONS = "options",
348
350
  /**
349
- * a literal constant, e.g. 'foo', 1, true
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
- * to be exposed on compiled script block for HMR cache busting
403
- */
404
+ * to be exposed on compiled script block for HMR cache busting
405
+ */
404
406
  deps?: Set<string>;
405
407
  /**
406
- * cache for resolved fs
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;
@@ -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",
@@ -628,7 +630,7 @@ declare namespace ts {
628
630
  /**
629
631
  * Time spent computing each kind of diagnostics, in milliseconds.
630
632
  */
631
- export type DiagnosticPerformanceData = { [Kind in DiagnosticEventKind]?: number };
633
+ export type DiagnosticPerformanceData = { [Kind in DiagnosticEventKind]?: number; };
632
634
  export interface FileDiagnosticPerformanceData extends DiagnosticPerformanceData {
633
635
  /**
634
636
  * The file for which the performance data is reported.
@@ -4368,12 +4370,9 @@ declare namespace ts {
4368
4370
  CatchClause = 300,
4369
4371
  ImportAttributes = 301,
4370
4372
  ImportAttribute = 302,
4371
- /** @deprecated */
4372
- AssertClause = 301,
4373
- /** @deprecated */
4374
- AssertEntry = 302,
4375
- /** @deprecated */
4376
- ImportTypeAssertionContainer = 303,
4373
+ /** @deprecated */ AssertClause = 301,
4374
+ /** @deprecated */ AssertEntry = 302,
4375
+ /** @deprecated */ ImportTypeAssertionContainer = 303,
4377
4376
  PropertyAssignment = 304,
4378
4377
  ShorthandPropertyAssignment = 305,
4379
4378
  SpreadAssignment = 306,
@@ -4886,16 +4885,14 @@ declare namespace ts {
4886
4885
  interface ImportTypeAssertionContainer extends Node {
4887
4886
  readonly kind: SyntaxKind.ImportTypeAssertionContainer;
4888
4887
  readonly parent: ImportTypeNode;
4889
- /** @deprecated */
4890
- readonly assertClause: AssertClause;
4888
+ /** @deprecated */ readonly assertClause: AssertClause;
4891
4889
  readonly multiLine?: boolean;
4892
4890
  }
4893
4891
  interface ImportTypeNode extends NodeWithTypeArguments {
4894
4892
  readonly kind: SyntaxKind.ImportType;
4895
4893
  readonly isTypeOf: boolean;
4896
4894
  readonly argument: TypeNode;
4897
- /** @deprecated */
4898
- readonly assertions?: ImportTypeAssertionContainer;
4895
+ /** @deprecated */ readonly assertions?: ImportTypeAssertionContainer;
4899
4896
  readonly attributes?: ImportAttributes;
4900
4897
  readonly qualifier?: EntityName;
4901
4898
  }
@@ -5700,8 +5697,7 @@ declare namespace ts {
5700
5697
  readonly importClause?: ImportClause;
5701
5698
  /** If this is not a StringLiteral it will be a grammar error. */
5702
5699
  readonly moduleSpecifier: Expression;
5703
- /** @deprecated */
5704
- readonly assertClause?: AssertClause;
5700
+ /** @deprecated */ readonly assertClause?: AssertClause;
5705
5701
  readonly attributes?: ImportAttributes;
5706
5702
  }
5707
5703
  type NamedImportBindings = NamespaceImport | NamedImports;
@@ -5759,8 +5755,7 @@ declare namespace ts {
5759
5755
  readonly exportClause?: NamedExportBindings;
5760
5756
  /** If this is not a StringLiteral it will be a grammar error. */
5761
5757
  readonly moduleSpecifier?: Expression;
5762
- /** @deprecated */
5763
- readonly assertClause?: AssertClause;
5758
+ /** @deprecated */ readonly assertClause?: AssertClause;
5764
5759
  readonly attributes?: ImportAttributes;
5765
5760
  }
5766
5761
  interface NamedImports extends Node {
@@ -7907,23 +7902,15 @@ declare namespace ts {
7907
7902
  createImportDeclaration(modifiers: readonly ModifierLike[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, attributes?: ImportAttributes): ImportDeclaration;
7908
7903
  updateImportDeclaration(node: ImportDeclaration, modifiers: readonly ModifierLike[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, attributes: ImportAttributes | undefined): ImportDeclaration;
7909
7904
  createImportClause(phaseModifier: ImportPhaseModifierSyntaxKind | undefined, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
7910
- /** @deprecated */
7911
- createImportClause(isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
7905
+ /** @deprecated */ createImportClause(isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
7912
7906
  updateImportClause(node: ImportClause, phaseModifier: ImportPhaseModifierSyntaxKind | undefined, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
7913
- /** @deprecated */
7914
- updateImportClause(node: ImportClause, isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
7915
- /** @deprecated */
7916
- createAssertClause(elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
7917
- /** @deprecated */
7918
- updateAssertClause(node: AssertClause, elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
7919
- /** @deprecated */
7920
- createAssertEntry(name: AssertionKey, value: Expression): AssertEntry;
7921
- /** @deprecated */
7922
- updateAssertEntry(node: AssertEntry, name: AssertionKey, value: Expression): AssertEntry;
7923
- /** @deprecated */
7924
- createImportTypeAssertionContainer(clause: AssertClause, multiLine?: boolean): ImportTypeAssertionContainer;
7925
- /** @deprecated */
7926
- updateImportTypeAssertionContainer(node: ImportTypeAssertionContainer, clause: AssertClause, multiLine?: boolean): ImportTypeAssertionContainer;
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;
7927
7914
  createImportAttributes(elements: NodeArray<ImportAttribute>, multiLine?: boolean): ImportAttributes;
7928
7915
  updateImportAttributes(node: ImportAttributes, elements: NodeArray<ImportAttribute>, multiLine?: boolean): ImportAttributes;
7929
7916
  createImportAttribute(name: ImportAttributeName, value: Expression): ImportAttribute;
@@ -8401,8 +8388,7 @@ declare namespace ts {
8401
8388
  ArrayBindingPatternElements = 524880,
8402
8389
  ObjectLiteralExpressionProperties = 526226,
8403
8390
  ImportAttributes = 526226,
8404
- /** @deprecated */
8405
- ImportClauseEntries = 526226,
8391
+ /** @deprecated */ ImportClauseEntries = 526226,
8406
8392
  ArrayLiteralExpressionElements = 8914,
8407
8393
  CommaListElements = 528,
8408
8394
  CallExpressionArguments = 2576,
@@ -9935,14 +9921,7 @@ declare namespace ts {
9935
9921
  }
9936
9922
  function readBuilderProgram(compilerOptions: CompilerOptions, host: ReadBuildProgramHost): EmitAndSemanticDiagnosticsBuilderProgram | undefined;
9937
9923
  function createIncrementalCompilerHost(options: CompilerOptions, system?: System): CompilerHost;
9938
- function createIncrementalProgram<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>({
9939
- rootNames,
9940
- options,
9941
- configFileParsingDiagnostics,
9942
- projectReferences,
9943
- host,
9944
- createProgram
9945
- }: IncrementalProgramOptions<T>): T;
9924
+ function createIncrementalProgram<T extends BuilderProgram = EmitAndSemanticDiagnosticsBuilderProgram>({ rootNames, options, configFileParsingDiagnostics, projectReferences, host, createProgram }: IncrementalProgramOptions<T>): T;
9946
9925
  /**
9947
9926
  * Create the watch compiler host for either configFile or fileNames and its options
9948
9927
  */
@@ -11616,20 +11595,20 @@ declare namespace ts {
11616
11595
  //#region temp/packages/compiler-sfc/src/script/resolveType.d.ts
11617
11596
  export type SimpleTypeResolveOptions = Partial<Pick<SFCScriptCompileOptions, "globalTypeFiles" | "fs" | "babelParserPlugins" | "isProd">>;
11618
11597
  /**
11619
- * TypeResolveContext is compatible with ScriptCompileContext
11620
- * but also allows a simpler version of it with minimal required properties
11621
- * when resolveType needs to be used in a non-SFC context, e.g. in a babel
11622
- * plugin. The simplest context can be just:
11623
- * ```ts
11624
- * const ctx: SimpleTypeResolveContext = {
11625
- * filename: '...',
11626
- * source: '...',
11627
- * options: {},
11628
- * error() {},
11629
- * ast: []
11630
- * }
11631
- * ```
11632
- */
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
+ */
11633
11612
  export type SimpleTypeResolveContext = Pick<ScriptCompileContext, "source" | "filename" | "error" | "warn" | "helper" | "getString" | "propsTypeDecl" | "propsRuntimeDefaults" | "propsDestructuredBindings" | "emitsTypeDecl" | "isCE"> & Partial<Pick<ScriptCompileContext, "scope" | "globalScopes" | "deps" | "fs">> & {
11634
11613
  ast: Statement$1[];
11635
11614
  options: SimpleTypeResolveOptions;
@@ -11667,19 +11646,19 @@ interface ResolvedElements {
11667
11646
  calls?: (TSCallSignatureDeclaration | TSFunctionType)[];
11668
11647
  }
11669
11648
  /**
11670
- * Resolve arbitrary type node to a list of type elements that can be then
11671
- * mapped to runtime props or emits.
11672
- */
11649
+ * Resolve arbitrary type node to a list of type elements that can be then
11650
+ * mapped to runtime props or emits.
11651
+ */
11673
11652
  export declare function resolveTypeElements(ctx: TypeResolveContext, node: Node$1 & MaybeWithScope & {
11674
11653
  _resolvedElements?: ResolvedElements;
11675
11654
  }, scope?: TypeScope, typeParameters?: Record<string, Node$1>): ResolvedElements;
11676
11655
  /**
11677
- * @private
11678
- */
11656
+ * @private
11657
+ */
11679
11658
  export declare function registerTS(_loadTS: () => typeof ts): void;
11680
11659
  /**
11681
- * @private
11682
- */
11660
+ * @private
11661
+ */
11683
11662
  export declare function invalidateTypeCache(filename: string): void;
11684
11663
  export declare function inferRuntimeType(ctx: TypeResolveContext, node: Node$1 & MaybeWithScope, scope?: TypeScope, isKeyOf?: boolean, typeParameters?: Record<string, Node$1>): string[];
11685
11664
  //#endregion
@@ -11692,10 +11671,10 @@ export declare const parseCache: Map<string, SFCParseResult>;
11692
11671
  export declare const errorMessages: Record<number, string>;
11693
11672
  export declare const walk: any;
11694
11673
  /**
11695
- * @deprecated this is preserved to avoid breaking vite-plugin-vue < 5.0
11696
- * with reactivityTransform: true. The desired behavior should be silently
11697
- * ignoring the option instead of breaking.
11698
- */
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
+ */
11699
11678
  export declare const shouldTransformRef: () => boolean;
11700
11679
  //#endregion
11701
11680
  export { type BindingMetadata, type CompilerError, type CompilerOptions$1 as CompilerOptions, MagicString, babelParse, extractIdentifiers, generateCodeFrame, isInDestructureAssignment, isStaticProperty, walkIdentifiers };