vue-component-type-helpers 3.0.0-beta.4 → 3.0.0-beta.5

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/index.d.ts CHANGED
@@ -4,6 +4,8 @@ export type ComponentProps<T> = T extends new (...args: any) => {
4
4
  } ? NonNullable<P> : T extends (props: infer P, ...args: any) => any ? P : {};
5
5
  export type ComponentSlots<T> = T extends new (...args: any) => {
6
6
  $slots: infer S;
7
+ } ? NonNullable<S> : T extends new (...args: any) => {
8
+ $scopedSlots: infer S;
7
9
  } ? NonNullable<S> : T extends (props: any, ctx: {
8
10
  slots: infer S;
9
11
  attrs: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-component-type-helpers",
3
- "version": "3.0.0-beta.4",
3
+ "version": "3.0.0-beta.5",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -12,5 +12,5 @@
12
12
  "url": "https://github.com/vuejs/language-tools.git",
13
13
  "directory": "packages/component-type-helpers"
14
14
  },
15
- "gitHead": "5cb41faacbfe2d9e2d64637c6c1ae8769d9cba3f"
15
+ "gitHead": "3a4648914c60c90444d939cf762a016a4318ca09"
16
16
  }
package/vue2.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ export type { ComponentAttrs, ComponentEmit, ComponentExposed, ComponentProps, ComponentType } from './index';
2
+ export type ComponentSlots<T> = T extends new (...args: any) => {
3
+ $scopedSlots: infer S;
4
+ } ? NonNullable<S> : T extends (props: any, ctx: {
5
+ slots: infer S;
6
+ attrs: any;
7
+ emit: any;
8
+ }, ...args: any) => any ? NonNullable<S> : {};
package/vue2.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=vue2.js.map