andywer / andywer/threads.js

error TS7016: Could not find a declaration file for module 'threads'

未关闭
#462 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
3.5k
派生
173
PR 合并指标
30 天内没有已合并 PR

描述

I am not sure how to configure my node app to support TypeScript when using this package. The compiler complain:
> error TS7016: Could not find a declaration file for module 'threads'. 'node_modules/threads/index.mjs' implicitly has an 'any' type.
Try `npm i --save-dev @types/threads` if it exists or add a new declaration (.d.ts) file containing `declare module 'threads';`,

I have tried both of those things, neither work. I am using `npx nodemon src/index.ts` to run my app and the `threads.d.ts` file is in the same folder as its usage.

What can I do?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。