Open tkamenoko opened 2 years ago
Img element is any type that prevents auto completion.
Img
any
Img should have a valid type definition.
Here is Img 's definition:
https://github.com/wellyshen/react-cool-img/blob/ff528a8d14281167d7f48662dad38c2cc33b9b6d/src/react-cool-img.d.ts#L45
But react.ForwardRefExoticComponent accepts only one type argument.
react.ForwardRefExoticComponent
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/72c1299e1ad143a84b900f7435c8b9f5f04a1d3e/types/react/index.d.ts#L773-L778
I think the same
@tkamenoko What are your React and TS versions?
Bug Report
Describe the Bug
Img
element isany
type that prevents auto completion.Expected Behavior
Img
should have a valid type definition.Screenshots
Your Environment
Additional Information
Here is
Img
's definition:https://github.com/wellyshen/react-cool-img/blob/ff528a8d14281167d7f48662dad38c2cc33b9b6d/src/react-cool-img.d.ts#L45
But
react.ForwardRefExoticComponent
accepts only one type argument.https://github.com/DefinitelyTyped/DefinitelyTyped/blob/72c1299e1ad143a84b900f7435c8b9f5f04a1d3e/types/react/index.d.ts#L773-L778