File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/vue-final-modal/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ T extends new () => { $slots: infer S } ? NonNullable<S> :
18
18
T extends ( props : any , ctx : { slots : infer S ; attrs : any ; emit : any } , ...args : any ) => any ? NonNullable < S > :
19
19
{ }
20
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
- // {}
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
+ { }
25
25
26
26
// export type ComponentExposed<T> =
27
27
// T extends new () => infer E ? E :
You can’t perform that action at this time.
0 commit comments