vue-component-meta 1.3.12 → 1.3.14

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.
Files changed (2) hide show
  1. package/out/index.js +5 -17
  2. 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
- type ComponentMeta<T> = {
168
- props:
169
- T extends new () => { $props: infer P } ? P :
170
- T extends (props: infer P) => any ? P :
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.12",
3
+ "version": "1.3.14",
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.12",
17
+ "@volar/vue-language-core": "1.3.14",
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": "03f8745d7428faee5c89d17e65d4cb76961efb2b"
24
+ "gitHead": "551efbac980e96b9ef7f1657c94a504f47e39e9d"
24
25
  }