tool.ts

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

慕虎1516689

2021-08-19

使用时报错
Don't useobjectas a type. Theobjecttype is currently hard to use ([see this issue](https://github.com/microsoft/TypeScript/issues/21732)). Consider usingRecord<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里关闭即可

0
0

Spring Boot+Vue3前后端分离,实战wiki知识库系统

一课掌握前后端最火框架,更有职场竞争力

2524 学习 · 1671 问题

查看课程