andywer / andywer/threads.js

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

オープン
#462 コメント 1 件 リアクション 2 件 担当者 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 を短くまとめたダイジェスト。