File tree 1 file changed +2
-4
lines changed
packages/runtime-dom/types
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1296,10 +1296,8 @@ export interface Events {
1296
1296
onTransitionstart : TransitionEvent
1297
1297
}
1298
1298
1299
- type StringKeyOf < T > = Extract < keyof T , string >
1300
-
1301
1299
type EventHandlers < E > = {
1302
- [ K in StringKeyOf < E > ] ?: E [ K ] extends Function ? E [ K ] : ( payload : E [ K ] ) => void
1300
+ [ K in keyof E ] ?: E [ K ] extends Function ? E [ K ] : ( payload : E [ K ] ) => void
1303
1301
}
1304
1302
1305
1303
// use namespace import to avoid collision with generated types which use
@@ -1317,7 +1315,7 @@ type ReservedProps = {
1317
1315
type ElementAttrs < T > = T & ReservedProps
1318
1316
1319
1317
type NativeElements = {
1320
- [ K in StringKeyOf < IntrinsicElementAttributes > ] : ElementAttrs <
1318
+ [ K in keyof IntrinsicElementAttributes ] : ElementAttrs <
1321
1319
IntrinsicElementAttributes [ K ]
1322
1320
>
1323
1321
}
You can’t perform that action at this time.
0 commit comments