Dom reference forces consuming package to use dom lib
Đang mở
- Ngôn ngữ chính
- TypeScript
- Star
- 3.5k
- Fork
- 173
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.