@vue/language-core 1.8.15 → 1.8.16
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/out/generators/script.js
CHANGED
|
@@ -356,10 +356,10 @@ function generate(ts, fileName, _sfc, lang, scriptRanges, scriptSetupRanges, htm
|
|
|
356
356
|
//#endregion
|
|
357
357
|
codes.push('return {} as {\n');
|
|
358
358
|
codes.push(`props: __VLS_Prettify<Omit<typeof __VLS_fnPropsDefineComponent & typeof __VLS_fnPropsTypeOnly, keyof typeof __VLS_defaultProps>> & typeof __VLS_fnPropsSlots & typeof __VLS_defaultProps,\n`);
|
|
359
|
-
codes.push(`expose(exposed: ${scriptSetupRanges.exposeRuntimeArg ? 'typeof __VLS_exposed' : '{}'}): void,\n`);
|
|
359
|
+
codes.push(`expose(exposed: import('${vueCompilerOptions.lib}').ShallowUnwrapRef<${scriptSetupRanges.exposeRuntimeArg ? 'typeof __VLS_exposed' : '{}'}>): void,\n`);
|
|
360
360
|
codes.push('attrs: any,\n');
|
|
361
361
|
codes.push('slots: ReturnType<typeof __VLS_template>,\n');
|
|
362
|
-
codes.push(
|
|
362
|
+
codes.push(`emit: typeof ${scriptSetupRanges.emitsAssignName ?? '__VLS_emit'},\n`);
|
|
363
363
|
codes.push('};\n');
|
|
364
364
|
codes.push('})(),\n');
|
|
365
365
|
codes.push(`) => ({} as import('${vueCompilerOptions.lib}').VNode & { __ctx?: Awaited<typeof __VLS_setup> }))`);
|
|
@@ -551,9 +551,6 @@ declare function defineProp<T>(value?: T | (() => T), required?: boolean, rest?:
|
|
|
551
551
|
}
|
|
552
552
|
codes.push(`};\n`);
|
|
553
553
|
codes.push(`},\n`);
|
|
554
|
-
if (scriptRanges?.exportDefault?.args) {
|
|
555
|
-
addVirtualCode('script', scriptRanges.exportDefault.args.start + 1, scriptRanges.exportDefault.args.end - 1);
|
|
556
|
-
}
|
|
557
554
|
codes.push(`})`);
|
|
558
555
|
}
|
|
559
556
|
function generateComponentOptions(functional) {
|
|
@@ -595,6 +592,9 @@ declare function defineProp<T>(value?: T | (() => T), required?: boolean, rest?:
|
|
|
595
592
|
codes.push(`emits: ({} as __VLS_NormalizeEmits<typeof `, scriptSetupRanges.emitsAssignName ?? '__VLS_emit', `>),\n`);
|
|
596
593
|
}
|
|
597
594
|
}
|
|
595
|
+
if (scriptRanges?.exportDefault?.args) {
|
|
596
|
+
addVirtualCode('script', scriptRanges.exportDefault.args.start + 1, scriptRanges.exportDefault.args.end - 1);
|
|
597
|
+
}
|
|
598
598
|
}
|
|
599
599
|
function generateSetupReturns() {
|
|
600
600
|
if (scriptSetupRanges && bypassDefineComponent) {
|
package/out/utils/globalTypes.js
CHANGED
|
@@ -111,8 +111,8 @@ type __VLS_OverloadUnion<T> = Exclude<
|
|
|
111
111
|
T extends () => never ? never : () => never
|
|
112
112
|
>;
|
|
113
113
|
type __VLS_ConstructorOverloads<T> = __VLS_OverloadUnion<T> extends infer F
|
|
114
|
-
? F extends (event: infer E, ...args: infer A) =>
|
|
115
|
-
? { [K in E
|
|
114
|
+
? F extends (event: infer E, ...args: infer A) => any
|
|
115
|
+
? { [K in E & string]: (...args: A) => void; }
|
|
116
116
|
: never
|
|
117
117
|
: never;
|
|
118
118
|
type __VLS_NormalizeEmits<T> = __VLS_Prettify<
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/language-core",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.16",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"directory": "packages/vue-language-core"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@volar/language-core": "~1.10.
|
|
17
|
-
"@volar/source-map": "~1.10.
|
|
16
|
+
"@volar/language-core": "~1.10.3",
|
|
17
|
+
"@volar/source-map": "~1.10.3",
|
|
18
18
|
"@vue/compiler-dom": "^3.3.0",
|
|
19
19
|
"@vue/reactivity": "^3.3.0",
|
|
20
20
|
"@vue/shared": "^3.3.0",
|
|
21
|
-
"minimatch": "^9.0.
|
|
21
|
+
"minimatch": "^9.0.3",
|
|
22
22
|
"muggle-string": "^0.3.1",
|
|
23
23
|
"vue-template-compiler": "^2.7.14"
|
|
24
24
|
},
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"optional": true
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "f9e281db3f47f9a3f94c79dbbf81102cba01eb5d"
|
|
38
38
|
}
|