File tree 1 file changed +8
-3
lines changed
packages/runtime-dom/types
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
// Note: this file is auto concatenated to the end of the bundled d.ts during
2
2
// build.
3
3
4
- import { Ref , ComponentPublicInstance } from '@vue/runtime-core'
5
-
6
4
// This code is based on react definition in DefinitelyTyped published under the MIT license.
7
5
// Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
8
6
// Path in the repository: types/react/index.d.ts
@@ -1307,9 +1305,16 @@ type EventHandlers<E> = {
1307
1305
[ K in StringKeyOf < E > ] ?: E [ K ] extends Function ? E [ K ] : ( payload : E [ K ] ) => void
1308
1306
}
1309
1307
1308
+ // use namespace import to avoid collision with generated types which use
1309
+ // named imports.
1310
+ import * as RuntimeCore from '@vue/runtime-core'
1311
+
1310
1312
type ReservedProps = {
1311
1313
key ?: string | number
1312
- ref ?: string | Ref | ( ( ref : Element | ComponentPublicInstance | null ) => void )
1314
+ ref ?:
1315
+ | string
1316
+ | RuntimeCore . Ref
1317
+ | ( ( ref : Element | RuntimeCore . ComponentInternalInstance | null ) => void )
1313
1318
}
1314
1319
1315
1320
type ElementAttrs < T > = T & EventHandlers < Events > & ReservedProps
You can’t perform that action at this time.
0 commit comments