Conflict with @types/react svg types in JSX.IntrinsicElements #172
Closed
Description
Hi! I've encountered a little problem while using react-three-fiber in TypeScript.
@types/react
conflicts with three-types.d.ts
on global JSX.IntrinsicElements.
Is there a workaround to avoid it?
(property) JSX.IntrinsicElements.line: React.SVGProps<SVGLineElement>
Subsequent property declarations must have the same type.
Property 'line' must be of type 'SVGProps<SVGLineElement>',
but here has type 'Object3DNode<Line, typeof Line>'.
ts(2717)
Repro: https://codesandbox.io/s/react-three-fiber-types-conflict-repro-ydr2t
(CodeSandbox seems to be few TS versions behind so there's another problem there -- Omit type is not defined, and because of it Object3DNode is any. The conflict I mentioned still occurs regardless of it.)
Metadata
Assignees
Labels
No labels