typescript - noImplicitAny "false" 似乎不起作用
问题描述
将大型应用程序从 .js 迁移到 .ts 时,我仍然得到一堆
property does not exist on type ...
错误,尽管在我的编译器选项中有"strict": false
和..."noImplicitAny": false
如何关闭类型检查(暂时在迁移期间)以便编译这些文件不会引发错误?
更新
# md5_worker.ts
import { ChunkedFile } from 'chunked_file';
export class MD5Worker {
constructor ({ data }) {
this.chunkedFile = new ChunkedFile(data.chunkedFile.file, data.chunkedFile);
}
...
}
运行tsc
这个给了我:property 'chunkedFile' does not exist on type MD5Worker
解决方案
推荐阅读
- javascript - javascript在chrome中工作但在ie9中不工作
- java - ORA-00942: 表或视图不存在,即使它存在
- javascript - 在不使用递归函数的情况下获取所有可能的组合
- apache-karaf - Apache Karaf 功能的最佳实践是什么
- regex - VSCode - 用正则表达式查找和替换,但保持原状
- python - 在 Python 中使用 Requests 模块时出错
- delphi - 关于 64 位应用的 SystemHandleInformation
- umbraco - Umbraco 7 - 如何允许用户即时添加新的内容字段?
- machine-learning - Keras 在当前迭代中获取数据
- java - 如何让 XStream 将旧的已删除字段映射到不同类型的新字段?