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> :
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 :
You can’t perform that action at this time.
0 commit comments