vue-component-meta 1.4.2 → 1.4.3

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 -5
  2. package/package.json +4 -4
package/out/index.js CHANGED
@@ -173,23 +173,23 @@ interface ComponentMeta<T> {
173
173
  if (embeddedTypes) {
174
174
  code += `
175
175
  type ComponentProps<T> =
176
- T extends (props: infer P, ...args: any) => any ? P :
177
176
  T extends new () => { $props: infer P } ? NonNullable<P> :
177
+ T extends (props: infer P, ...args: any) => any ? P :
178
178
  {};
179
179
 
180
180
  type ComponentSlots<T> =
181
- T extends (props: any, ctx: { slots: infer S }, ...args: any) => any ? NonNullable<S> :
182
181
  T extends new () => { $slots: infer S } ? NonNullable<S> :
182
+ T extends (props: any, ctx: { slots: infer S }, ...args: any) => any ? NonNullable<S> :
183
183
  {};
184
184
 
185
185
  type ComponentEmit<T> =
186
- T extends (props: any, ctx: { emit: infer E }, ...args: any) => any ? NonNullable<E> :
187
186
  T extends new () => { $emit: infer E } ? NonNullable<E> :
187
+ T extends (props: any, ctx: { emit: infer E }, ...args: any) => any ? NonNullable<E> :
188
188
  {};
189
189
 
190
190
  type ComponentExposed<T> =
191
- T extends (props: any, ctx: { expose(exposed: infer E): any }, ...args: any) => any ? NonNullable<E> :
192
191
  T extends new () => infer E ? E :
192
+ T extends (props: any, ctx: { expose(exposed: infer E): any }, ...args: any) => any ? NonNullable<E> :
193
193
  {};
194
194
 
195
195
  /**
@@ -197,8 +197,8 @@ T extends new () => infer E ? E :
197
197
  */
198
198
 
199
199
  type Vue2ComponentSlots<T> =
200
- T extends (props: any, ctx: { slots: infer S }, ...args: any) => any ? NonNullable<S> :
201
200
  T extends new () => { $scopedSlots: infer S } ? NonNullable<S> :
201
+ T extends (props: any, ctx: { slots: infer S }, ...args: any) => any ? NonNullable<S> :
202
202
  {};`;
203
203
  }
204
204
  return code;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-component-meta",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "main": "out/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -13,13 +13,13 @@
13
13
  "directory": "packages/vue-component-meta"
14
14
  },
15
15
  "dependencies": {
16
- "@volar/language-core": "1.4.0",
17
- "@volar/vue-language-core": "1.4.2",
16
+ "@volar/language-core": "1.4.1",
17
+ "@volar/vue-language-core": "1.4.3",
18
18
  "typesafe-path": "^0.2.2"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "typescript": "*",
22
22
  "vue-component-type-helpers": "1.3.12"
23
23
  },
24
- "gitHead": "7879b086f9e5c4a9e748014d5469370d0f3de378"
24
+ "gitHead": "5236d30f9eec38c9537af66471c587821f11ef82"
25
25
  }