在 ts 使用 any 作为数据类型时出现报错:Unexpected any. Specify a different type.
any
Unexpected any. Specify a different type.
关闭 any 类型的警告,在 .eslintrc.js 文件中找到 rules 添加以下代码
.eslintrc.js
rules
'@typescript-eslint/no-explicit-any': ['off']