首页 > 解决方案 > 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

标签: typescript

解决方案


推荐阅读