报错:Parameter ‘XXX‘ implicitly has an ‘any‘ type.解决方法
报错:Parameter ‘XXX’ implicitly has an ‘any’ type.解决方法tsconfig.json添加"noImplicitAny": false,或者 “strict”: true,改为false{"compilerOptions": {"target": "es5","module": "commonjs","moduleResolution": "node",
·
报错:Parameter ‘XXX’ implicitly has an ‘any’ type.解决方法
tsconfig.json添加"noImplicitAny": false,
或者 “strict”: true,改为false
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"strict": false, //<---或者修改这个
"noImplicitAny": false // <-----
}
}
更多推荐
已为社区贡献5条内容
所有评论(0)