Dom reference forces consuming package to use dom lib
未關閉
- 主要語言
- TypeScript
- 星號
- 3.5k
- 分支
- 173
- PR 合併指標
- 30 天內沒有已合併 PR
描述
This line forces consuming packages to use the dom lib when compiling:
https://github.com/andywer/threads.js/blob/master/src/types/master.ts#L1
This means that the host package can't properly type check for nodejs only. For example, the compiler will not catch if someone tries to use the global `performance` object, which doesn't exist in node.
I believe this is related to https://github.com/andywer/threads.js/issues/418
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。