alibaba / pont

🌉数据服务层解决方案
MIT License
3.03k stars 254 forks source link

fix: 枚举包含数值时,生成的类型声明重复 #391

Closed lc-soft closed 7 months ago

lc-soft commented 1 year ago

What kind of change does this PR introduce(这个 PR 引入了什么样的变化)?

Does this PR introduce a breaking change(这次 PR 引入了一个重大变化吗)?

If yes, please describe the impact and migration path for existing applications(如果是,请描述现有应用程序的影响和迁移路径):

The PR fulfills these requirements(PR 符合以下要求)

Other information(其他信息)

image

image

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.

z979054461 commented 7 months ago

关于这个问题,我觉得改这一句就好了,你看一下? !Number.isNaN(Number(str)) => !Number.isNumber(str) && !Number.isNaN(Number(str))