We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53e1812 commit fec4f47Copy full SHA for fec4f47
packages/vue-final-modal/src/Component.ts
@@ -18,10 +18,10 @@ T extends new () => { $slots: infer S } ? NonNullable<S> :
18
T extends (props: any, ctx: { slots: infer S; attrs: any; emit: any }, ...args: any) => any ? NonNullable<S> :
19
{}
20
21
-// export type ComponentEmit<T> =
22
-// T extends new () => { $emit: infer E } ? NonNullable<E> :
23
-// T extends (props: any, ctx: { slots: any; attrs: any; emit: infer E }, ...args: any) => any ? NonNullable<E> :
24
-// {}
+export type ComponentEmit<T> =
+T extends new () => { $emit: infer E } ? NonNullable<E> :
+ T extends (props: any, ctx: { slots: any; attrs: any; emit: infer E }, ...args: any) => any ? NonNullable<E> :
+ {}
25
26
// export type ComponentExposed<T> =
27
// T extends new () => infer E ? E :
0 commit comments