File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1- import * as Zdog from 'react-zdog'
21import {
32 ElementType ,
43 ComponentPropsWithRef ,
76import { FluidValue } from '@react-spring/shared'
87import { primitives } from './primitives'
98
10- type Primitives = typeof primitives [ number ]
9+ type Primitives = typeof primitives
1110type AnimatedPrimitives = {
12- [ P in Primitives ] : AnimatedComponent < typeof Zdog [ P ] >
11+ [ P in keyof Primitives ] : AnimatedComponent < Primitives [ P ] >
1312}
1413
1514/** The type of the `animated()` function */
@@ -18,9 +17,8 @@ export type WithAnimated = {
1817} & AnimatedPrimitives
1918
2019/** The type of an `animated()` component */
21- export type AnimatedComponent <
22- T extends ElementType
23- > = ForwardRefExoticComponent < AnimatedProps < ComponentPropsWithRef < T > > >
20+ export type AnimatedComponent < T extends ElementType > =
21+ ForwardRefExoticComponent < AnimatedProps < ComponentPropsWithRef < T > > >
2422
2523/** The props of an `animated()` component */
2624export type AnimatedProps < Props extends object > = {
You can’t perform that action at this time.
0 commit comments