type(slider): improve eventName type (#51156)

This commit is contained in:
thinkasany 2024-10-08 17:56:12 +08:00 committed by GitHub
parent 42a3770e7d
commit f83c588b55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -267,7 +267,7 @@ const Slider = React.forwardRef<SliderRef, SliderSingleProps | SliderRangeProps>
const nodeProps = node.props;
function proxyEvent(
eventName: string,
eventName: keyof React.DOMAttributes<HTMLElement>,
event: React.SyntheticEvent,
triggerRestPropsEvent?: boolean,
) {