-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
area: typescriptTypescript issuesTypescript issueskind: bugSomething isn't workingSomething isn't working
Description
🐛 Bug Report
Responding to #892 (comment)
When using react-spring with react-three-fiber in version 9.0.0-rc3, Typescript will complain about invalid types when using SpringValues. As a quick fix it's possible to use (prop as any) as T (as seen in the codesandbox example below with color).
The animation is working as expected.
Expected behavior
Augmented components from react-spring/three accept both SpringValue<T> and T (T being Vector3 for example).
Link to repro (highly encouraged)
https://codesandbox.io/s/recursing-bohr-xri52?file=/src/index.tsx
Environment
react-springv9.0.0-rc3reactv17.0.0
pooya121, strblr and ruucm-working
Metadata
Metadata
Assignees
Labels
area: typescriptTypescript issuesTypescript issueskind: bugSomething isn't workingSomething isn't working
