Skip to content

Commit fec4f47

Browse files
committed
fix: fixed type ComponentEmit
1 parent 53e1812 commit fec4f47

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/vue-final-modal/src/Component.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ T extends new () => { $slots: infer S } ? NonNullable<S> :
1818
T extends (props: any, ctx: { slots: infer S; attrs: any; emit: any }, ...args: any) => any ? NonNullable<S> :
1919
{}
2020

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-
// {}
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+
{}
2525

2626
// export type ComponentExposed<T> =
2727
// T extends new () => infer E ? E :

0 commit comments

Comments
 (0)