UNPKG

593 BTypeScriptView Raw
1import {
2 ForwardRefExoticComponent,
3 ComponentPropsWithRef,
4 ReactType,
5} from 'react'
6import * as konva from 'react-konva'
7import { animated } from './renderprops-universal'
8export * from './renderprops-universal'
9
10type KonvaComponents = Pick<
11 typeof konva,
12 {
13 [K in keyof typeof konva]: typeof konva[K] extends ReactType ? K : never
14 }[keyof typeof konva]
15>
16
17declare const augmentedAnimated: typeof animated &
18 {
19 [Tag in keyof KonvaComponents]: ForwardRefExoticComponent<
20 ComponentPropsWithRef<KonvaComponents[Tag]>
21 >
22 }
23
24export { augmentedAnimated as animated }