@vue/language-core 3.1.1 → 3.1.2
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.
|
@@ -91,7 +91,7 @@ function* generatePropsOption(options, ctx, scriptSetup, scriptSetupRanges, hasE
|
|
|
91
91
|
if (options.templateCodegen?.inheritedAttrVars.size) {
|
|
92
92
|
let attrsType = `__VLS_InheritedAttrs`;
|
|
93
93
|
if (hasEmitsOption) {
|
|
94
|
-
attrsType = `Omit<${attrsType},
|
|
94
|
+
attrsType = `Omit<${attrsType}, keyof __VLS_EmitProps>`;
|
|
95
95
|
}
|
|
96
96
|
getOptionCodes.push(() => {
|
|
97
97
|
const propsType = `__VLS_PickNotAny<${ctx.localTypes.OmitIndexSignature}<${attrsType}>, {}>`;
|
|
@@ -65,7 +65,7 @@ function* generateScriptSetup(options, ctx, scriptSetup, scriptSetupRanges) {
|
|
|
65
65
|
emitTypes.push(`typeof __VLS_modelEmit`);
|
|
66
66
|
}
|
|
67
67
|
yield `return {} as {${utils_1.newLine}`
|
|
68
|
-
+ ` props: ${ctx.localTypes.PrettifyLocal}<${propTypes.join(` & `)}> & ${options.vueCompilerOptions.target >= 3.4
|
|
68
|
+
+ ` props: ${propTypes.length ? `${ctx.localTypes.PrettifyLocal}<${propTypes.join(` & `)}> & ` : ``}${options.vueCompilerOptions.target >= 3.4
|
|
69
69
|
? `import('${options.vueCompilerOptions.lib}').PublicProps`
|
|
70
70
|
: options.vueCompilerOptions.target >= 3
|
|
71
71
|
? `import('${options.vueCompilerOptions.lib}').VNodeProps`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/language-core",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"optional": true
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "77db3d889305e8c02740f4c14793bff0156ccdb8"
|
|
40
40
|
}
|