@vue/language-core 3.2.5 → 3.2.6
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.
|
@@ -109,7 +109,11 @@ function* generateWorker(options, ctx) {
|
|
|
109
109
|
yield* endScope();
|
|
110
110
|
}
|
|
111
111
|
function* generateSlotsType(options, ctx) {
|
|
112
|
-
if (options.hasDefineSlots
|
|
112
|
+
if (options.hasDefineSlots) {
|
|
113
|
+
ctx.generatedTypes.add(names.Slots);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
if (!ctx.slots.length && !ctx.dynamicSlots.length) {
|
|
113
117
|
return;
|
|
114
118
|
}
|
|
115
119
|
ctx.generatedTypes.add(names.Slots);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/language-core",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"@volar/typescript": "2.4.28",
|
|
29
29
|
"@vue/compiler-sfc": "^3.5.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "94907be4f056f25867e46a117ab18d2782b425d7"
|
|
32
32
|
}
|
|
@@ -111,7 +111,7 @@ declare global {
|
|
|
111
111
|
|
|
112
112
|
function __VLS_vFor<T>(source: T): T extends number ? [number, number][]
|
|
113
113
|
: T extends string ? [string, number][]
|
|
114
|
-
: T extends (infer U)[] ? [U, number][]
|
|
114
|
+
: T extends readonly (infer U)[] ? [U, number][]
|
|
115
115
|
: T extends Iterable<infer V> ? [V, number][]
|
|
116
116
|
: [T[keyof T], keyof T extends string ? keyof T : `${keyof T & (string | number)}`, number][];
|
|
117
117
|
function __VLS_vSlot<S, D extends S>(slot: S, decl?: D): D extends (...args: infer P) => any ? P : any[];
|