tool.ts
来源:3-10 总结:本章知识点梳理(持续更新)

慕虎1516689
2021-08-19
使用时报错Don't use
objectas a type. The
objecttype is currently hard to use ([see this issue](https://github.com/microsoft/TypeScript/issues/21732)). Consider using
Record<string, unknown>instead, as it allows you to more easily inspe ct and use the keys @typescript-eslint/ban-types
写回答
1回答
-
甲蛙
2021-08-20
这个是代码规范检查,在代码报错的右边,有打印校验规则,把规则在eslintrc.js里关闭即可
00
相似问题