vue-component-meta 1.3.12 → 1.3.13
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/index.js +5 -17
- package/package.json +5 -4
package/out/index.js
CHANGED
|
@@ -164,23 +164,11 @@ function baseCreate(_host, checkerOptions, globalComponentName, ts) {
|
|
|
164
164
|
import * as Components from '${fileName.substring(0, fileName.length - '.meta.ts'.length)}';
|
|
165
165
|
export default {} as { [K in keyof typeof Components]: ComponentMeta<typeof Components[K]>; };
|
|
166
166
|
|
|
167
|
-
|
|
168
|
-
props:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
emit:
|
|
173
|
-
T extends new () => { $emit: infer E } ? E :
|
|
174
|
-
T extends (props: any, ctx: { emit: infer E }) => any ? E :
|
|
175
|
-
{};
|
|
176
|
-
slots:
|
|
177
|
-
T extends new () => { ${vueCompilerOptions.target < 3 ? '$scopedSlots' : '$slots'}: infer S } ? S :
|
|
178
|
-
T extends (props: any, ctx: { slots: infer S }) => any ? S :
|
|
179
|
-
{};
|
|
180
|
-
exposed:
|
|
181
|
-
T extends new () => infer E ? E :
|
|
182
|
-
T extends (props: any, ctx: { expose(exposed?: infer E): any }) => any ? E :
|
|
183
|
-
{};
|
|
167
|
+
interface ComponentMeta<T> {
|
|
168
|
+
props: import('vue-component-type-helpers').ComponentProps<T>;
|
|
169
|
+
emit: import('vue-component-type-helpers').ComponentEmit<T>;
|
|
170
|
+
slots: import('vue-component-type-helpers').${vueCompilerOptions.target < 3 ? 'Vue2ComponentSlots' : 'ComponentSlots'}<T>;
|
|
171
|
+
exposed: import('vue-component-type-helpers').ComponentExposed<T>;
|
|
184
172
|
};
|
|
185
173
|
`.trim();
|
|
186
174
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-component-meta",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.13",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@volar/language-core": "1.4.0-alpha.7",
|
|
17
|
-
"@volar/vue-language-core": "1.3.
|
|
17
|
+
"@volar/vue-language-core": "1.3.13",
|
|
18
18
|
"typesafe-path": "^0.2.2"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"typescript": "*"
|
|
21
|
+
"typescript": "*",
|
|
22
|
+
"vue-component-type-helpers": "1.3.12"
|
|
22
23
|
},
|
|
23
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "f1f2e7de96e46599a2c84c801f43ecf91d08d4b7"
|
|
24
25
|
}
|