fix:解决ts报错
fix: #1922
⚠️ No Changeset found
Latest commit: 01c611573ee047da1d484b3d4ed6f9e338f727b4
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
感谢您的 PR,这个问题是这边疏忽了,不过这类问题通常是相关逻辑变动但类型定义没有同步改动导致的,还是应该从完善类型定义的角度入手,不推荐直接使用类型断言来解决。
- 导致您遇到这个问题的 PR:#1916
- 从完善类型定义的角度解决该问题:#1923
首先感谢 PR,也欢迎后续继续参与贡献,这个解决方案建议使用 #1924 的解决方案,所以先关闭该 PR