原文:TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'

ts使用枚举类型引用报错 解决方案一:在对象接口中使用 keyof typeof 枚举变量 解决方案二:使用断言 ...

2020-11-03 11:03 0 1934 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM