Observed Behaviour
Inferno with TypeScript ignores defaultProps in JSX.
Error: Property 'value' is missing in type '{}' but required in type 'ComponentPropsType'.
See Inferno example: https://codesandbox.io/s/inferno-ts-example-i0i2c?file=/src/App.tsx.
Expected Current Behaviour
Inferno with TypeScript should notice defaultProps in JSX, like React.
See React example: https://codesandbox.io/s/react-ts-example-2zezs?file=/src/App.tsx.
Inferno Metadata
Inferno v7.4.7
Hi,
Thanks for reporting this issue. I need to investigate where this error actually comes from :)
Most helpful comment
Hi,
Thanks for reporting this issue. I need to investigate where this error actually comes from :)