vue-component-type-helpers
Advanced tools
Comparing version 1.8.24 to 1.8.25
@@ -17,3 +17,3 @@ export declare const code: string; | ||
T extends new () => { $slots: infer S; } ? NonNullable<S> : | ||
T extends (props: any, ctx: { slots: infer S; }, ...args: any) => any ? NonNullable<S> : | ||
T extends (props: any, ctx: { slots: infer S; attrs: any; emit: any; }, ...args: any) => any ? NonNullable<S> : | ||
{}; | ||
@@ -23,3 +23,3 @@ | ||
T extends new () => { $emit: infer E; } ? NonNullable<E> : | ||
T extends (props: any, ctx: { emit: infer E; }, ...args: any) => any ? NonNullable<E> : | ||
T extends (props: any, ctx: { slots: any; attrs: any; emit: infer E; }, ...args: any) => any ? NonNullable<E> : | ||
{}; | ||
@@ -26,0 +26,0 @@ |
13
index.js
@@ -16,3 +16,3 @@ // @ts-check | ||
T extends new () => { $slots: infer S; } ? NonNullable<S> : | ||
T extends (props: any, ctx: { slots: infer S; }, ...args: any) => any ? NonNullable<S> : | ||
T extends (props: any, ctx: { slots: infer S; attrs: any; emit: any; }, ...args: any) => any ? NonNullable<S> : | ||
{}; | ||
@@ -22,3 +22,3 @@ | ||
T extends new () => { $emit: infer E; } ? NonNullable<E> : | ||
T extends (props: any, ctx: { emit: infer E; }, ...args: any) => any ? NonNullable<E> : | ||
T extends (props: any, ctx: { slots: any; attrs: any; emit: infer E; }, ...args: any) => any ? NonNullable<E> : | ||
{}; | ||
@@ -30,11 +30,2 @@ | ||
{}; | ||
/** | ||
* Vue 2.x | ||
*/ | ||
export type Vue2ComponentSlots<T> = | ||
T extends new () => { $scopedSlots: infer S; } ? NonNullable<S> : | ||
T extends (props: any, ctx: { slots: infer S; }, ...args: any) => any ? NonNullable<S> : | ||
{}; | ||
`.trim(); | ||
@@ -41,0 +32,0 @@ |
{ | ||
"name": "vue-component-type-helpers", | ||
"version": "1.8.24", | ||
"version": "1.8.25", | ||
"license": "MIT", | ||
@@ -14,3 +14,3 @@ "files": [ | ||
}, | ||
"gitHead": "6f850196d6b9cd1bee62104d3d92867cf0b6777e" | ||
"gitHead": "6f8ca45025b8e38a86f6946bbc294a6a2d88b063" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4053
53