With @types/react v19 typecheck is broken
@types/react@19.0.7
@types/react-dom@19.0.3
tsc@5.0.3
TS2590: Expression produces a union type that is too complex to represent.
Reproduction
import {NumericFormat} from 'react-number-format'
const Component = (...props: any) => <NumericFormat {...props} />
With @types/react v19 typecheck is broken
@types/react@19.0.7
@types/react-dom@19.0.3
tsc@5.0.3
Reproduction