Tsukikage7 commented on PR #1527:
URL: https://github.com/apache/dubbo-admin/pull/1527#issuecomment-5993508842

   @robocanic 看过了,这几条建议有道理,已在 9615120 中调整并逐条回复。
   
   核心问题是泛型 `T` 承诺了未经验证的类型,而不安全数字会被解析为字符串。因此工具函数改为返回 `unknown`。调试页原来已经按 
`unknown` 
处理,并保留了数组判断和单值包装,本次不改变运行时请求行为。测试直接比较完整值即可,不需要额外强制类型转换;另补充了返回类型断言及嵌套正负整数边界覆盖。
   
   本地验证:10 个前端测试通过,相关文件 ESLint/Prettier、工具函数和测试的独立严格 TypeScript 检查、Vite 
生产构建均通过。全仓 lint 和 type-check 仍有既有错误,修改前后的完整诊断输出一致,没有新增错误。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to