vue-component-type-helpers
Advanced tools
+25
| export type ComponentProps<T> = T extends new (...args: any) => { | ||
| $props: infer P; | ||
| } ? NonNullable<P> : T extends (props: infer P, ...args: any) => any ? P : {}; | ||
| export type ComponentSlots<T> = T extends new (...args: any) => { | ||
| $slots: infer S; | ||
| } ? NonNullable<S> : T extends (props: any, ctx: { | ||
| slots: infer S; | ||
| attrs: any; | ||
| emit: any; | ||
| }, ...args: any) => any ? NonNullable<S> : {}; | ||
| export type ComponentAttrs<T> = T extends new (...args: any) => { | ||
| $attrs: infer A; | ||
| } ? NonNullable<A> : T extends (props: any, ctx: { | ||
| slots: any; | ||
| attrs: infer A; | ||
| emit: any; | ||
| }, ...args: any) => any ? NonNullable<A> : {}; | ||
| export type ComponentEmit<T> = T extends new (...args: any) => { | ||
| $emit: infer E; | ||
| } ? NonNullable<E> : T extends (props: any, ctx: { | ||
| slots: any; | ||
| attrs: any; | ||
| emit: infer E; | ||
| }, ...args: any) => any ? NonNullable<E> : {}; | ||
| export type ComponentExposed<T> = T extends new (...args: any) => infer E ? E : T extends (props: any, ctx: any, expose: (exposed: infer E) => any, ...args: any) => any ? NonNullable<E> : {}; |
+3
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| //# sourceMappingURL=index.js.map |
+2
-3
| { | ||
| "name": "vue-component-type-helpers", | ||
| "version": "3.2.0", | ||
| "version": "3.2.1", | ||
| "license": "MIT", | ||
@@ -14,4 +14,3 @@ "files": [ | ||
| "directory": "packages/component-type-helpers" | ||
| }, | ||
| "gitHead": "3138110d767d3d6110899bc46518b53c4b456271" | ||
| } | ||
| } |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
3214
53.34%5
66.67%27
Infinity%0
-100%