Reproduction link

Steps to reproduce
如codesandbox所示
What is expected?
期待onChange属性可以接收 (value: string) => void 类型的函数
What is actually happening?
报类型错误

| Environment | Info |
| antd | 5.3.2 |
| React | 18.2.0 |
| System | Windows 10 21H2 |
| Browser | Chrome Version 102.0.5005.115 (Official Build) (64-bit) |