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 摘要。