@vue/language-core 3.2.0 → 3.2.1

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.
@@ -20,7 +20,6 @@ export declare const TemplateRefs = "__VLS_TemplateRefs";
20
20
  export declare const RootEl = "__VLS_RootEl";
21
21
  export declare const ModelEmit = "__VLS_ModelEmit";
22
22
  export declare const EmitProps = "__VLS_EmitProps";
23
- export declare const InternalProps = "__VLS_InternalProps";
24
23
  export declare const Emit = "__VLS_Emit";
25
24
  export declare const SetupExposed = "__VLS_SetupExposed";
26
25
  export declare const PublicProps = "__VLS_PublicProps";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StyleModules = exports.PublicProps = exports.SetupExposed = exports.Emit = exports.InternalProps = exports.EmitProps = exports.ModelEmit = exports.RootEl = exports.TemplateRefs = exports.InheritedAttrs = exports.Slots = exports.Props = exports.ModelProps = exports._export = exports.intrinsics = exports.directives = exports.components = exports.setup = exports.exposed = exports.emit = exports.modelEmit = exports.defaultModels = exports.defaults = exports.props = exports.slots = exports.dollars = exports.ctx = void 0;
3
+ exports.StyleModules = exports.PublicProps = exports.SetupExposed = exports.Emit = exports.EmitProps = exports.ModelEmit = exports.RootEl = exports.TemplateRefs = exports.InheritedAttrs = exports.Slots = exports.Props = exports.ModelProps = exports._export = exports.intrinsics = exports.directives = exports.components = exports.setup = exports.exposed = exports.emit = exports.modelEmit = exports.defaultModels = exports.defaults = exports.props = exports.slots = exports.dollars = exports.ctx = void 0;
4
4
  exports.ctx = '__VLS_ctx';
5
5
  exports.dollars = '__VLS_dollars';
6
6
  exports.slots = '__VLS_slots';
@@ -23,7 +23,6 @@ exports.TemplateRefs = '__VLS_TemplateRefs';
23
23
  exports.RootEl = '__VLS_RootEl';
24
24
  exports.ModelEmit = '__VLS_ModelEmit';
25
25
  exports.EmitProps = '__VLS_EmitProps';
26
- exports.InternalProps = '__VLS_InternalProps';
27
26
  exports.Emit = '__VLS_Emit';
28
27
  exports.SetupExposed = '__VLS_SetupExposed';
29
28
  exports.PublicProps = '__VLS_PublicProps';
@@ -84,9 +84,8 @@ function* generateTemplateCtx({ vueCompilerOptions, templateAndStyleTypes, scrip
84
84
  propTypes.push(names.EmitProps);
85
85
  }
86
86
  if (propTypes.length) {
87
- yield `type ${names.InternalProps} = ${propTypes.join(` & `)}${utils_1.endOfLine}`;
88
- exps.push([`{} as { $props: ${names.InternalProps} }`]);
89
- exps.push([`{} as ${names.InternalProps}`]);
87
+ exps.push([`{} as { $props: ${propTypes.join(` & `)} }`]);
88
+ exps.push([`{} as ${propTypes.join(` & `)}`]);
90
89
  }
91
90
  if (ctx.generatedTypes.has(names.SetupExposed)) {
92
91
  exps.push([`{} as ${names.SetupExposed}`]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/language-core",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -28,5 +28,5 @@
28
28
  "@volar/typescript": "2.4.27",
29
29
  "@vue/compiler-sfc": "^3.5.0"
30
30
  },
31
- "gitHead": "3138110d767d3d6110899bc46518b53c4b456271"
31
+ "gitHead": "fad5a89205579e6a0902d7ee5bae3db7b510e2f4"
32
32
  }
@@ -108,7 +108,7 @@ declare global {
108
108
 
109
109
  function __VLS_vFor<T>(source: T): T extends number ? [number, number][]
110
110
  : T extends string ? [string, number][]
111
- : T extends any[] ? [T[number], number][]
111
+ : T extends (infer U)[] ? [U, number][]
112
112
  : T extends Iterable<infer V> ? [V, number][]
113
113
  : [T[keyof T], `${keyof T & (string | number)}`, number][];
114
114
  function __VLS_vSlot<S, D extends S>(slot: S, decl?: D): D extends (...args: infer P) => any ? P : any[];