typescript .d.ts 文件编译错误可以安全忽略吗?

are typescript .d.ts file compile errors safe to ignore?

我正在使用带有打字稿插件的 VS 2013 社区版。

.d.ts 文件中的编译时错误是否可以安全忽略?所有的 .d.ts 文件都是用 tsd 工具下载的。

例如对于请求,它需要节点。d.ts 和表单数据。d.ts 我没有下载的文件。我是否应该对每个定义文件进行树状搜索并获取引用的定义文件?

Am I supposed to treewalk every definition file and get the referenced definition files too

以下应自动执行此操作:

npm install -g tsd@next
tsd install request -soar

Are the compile time errors in the .d.ts files safe to ignore

可能是的。但是,如果您这样做,就很难知道 什么可以安全忽略,什么不能 。所以尽量不要在出现错误的情况下继续。