developit / web-worker

Consistent Web Workers in browser and Node.
https://npm.im/web-worker
Apache License 2.0
1.06k stars 55 forks source link

Erroneous type definitions: Type `Worker` is not exported #20

Open LinqLover opened 3 years ago

LinqLover commented 3 years ago

When compiling a TypeScript project that refers to this package, I get the following error:

node_modules/web-worker/index.d.ts:3:39 - error TS2304: Cannot find name 'Worker'.

3 declare const _default: ConstructorOf<Worker>
                                        ~~~~~~