didi / LogicFlow

A flow chart editing framework focus on business customization. 专注于业务自定义的流程图编辑框架,支持实现脑图、ER图、UML、工作流等各种图编辑场景。
https://site.logic-flow.cn
Apache License 2.0
8.78k stars 1.14k forks source link

fix:解决ts报错 #1923

Closed hanfengcan closed 1 month ago

hanfengcan commented 1 month ago

fix: #1922

changeset-bot[bot] commented 1 month ago

⚠️ 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

ChangeSuger commented 1 month ago

感谢您的 PR,这个问题是这边疏忽了,不过这类问题通常是相关逻辑变动但类型定义没有同步改动导致的,还是应该从完善类型定义的角度入手,不推荐直接使用类型断言来解决。

boyongjiong commented 1 month ago

首先感谢 PR,也欢迎后续继续参与贡献,这个解决方案建议使用 #1924 的解决方案,所以先关闭该 PR