Error with AntDIconProps when using newer version of @types/react
#47886
Labels
🐛 Bug
Ant Design Team had proved that this is a bug.
@types/react
#47886
Steps to reproduce
When upgrading our
@types/react
package to18.2.66
, the AntD Icons give an error related toonPointerEnterCapture
andonPointerLeaveCapture
because they were removed.What is expected?
AntD Icons are fixed so they don't try to pick those props in the AntDIconProps and IconProps.
What is actually happening?
From DefinitelyTyped/DefinitelyTyped#68984 onward, the
onPointerEnterCapture
andonPointerLeaveCapture
props are removed, but they are being selected in all AntD Icon prop definitions.The props need to be remove from
The text was updated successfully, but these errors were encountered: