File tree 1 file changed +8
-9
lines changed
packages/runtime-core/src
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -38,19 +38,18 @@ export type EmitsOptions = ObjectEmitsOptions | string[]
38
38
39
39
export type EmitsToProps < T extends EmitsOptions > = T extends string [ ]
40
40
? {
41
- [ K in string & `on${Capitalize < T [ number ] > } `] ?: ( ...args : any [ ] ) => any
41
+ [ K in `on${Capitalize < T [ number ] > } `] ?: ( ...args : any [ ] ) => any
42
42
}
43
43
: T extends ObjectEmitsOptions
44
44
? {
45
- [ K in string &
46
- `on${Capitalize < string & keyof T > } `] ?: K extends `on${infer C } `
47
- ? T [ Uncapitalize < C > ] extends null
48
- ? ( ...args : any [ ] ) => any
49
- : (
50
- ...args : T [ Uncapitalize < C > ] extends ( ...args : infer P ) => any
51
- ? P
45
+ [ K in `on${Capitalize < string & keyof T > } `] ?: K extends `on${infer C } `
46
+ ? (
47
+ ...args : T [ Uncapitalize < C > ] extends ( ...args : infer P ) => any
48
+ ? P
49
+ : T [ Uncapitalize < C > ] extends null
50
+ ? any [ ]
52
51
: never
53
- ) => any
52
+ ) => any
54
53
: never
55
54
}
56
55
: { }
You can’t perform that action at this time.
0 commit comments