GoogleChromeLabs / worker-plugin

👩‍🏭 Adds native Web Worker bundling support to Webpack.
https://npm.im/worker-plugin
Apache License 2.0
1.92k stars 79 forks source link

Typescript support? #56

Closed corbanbrook closed 4 years ago

corbanbrook commented 4 years ago

Is there typescript support planned?

developit commented 4 years ago

In what sense? This should just use your existing TypeScript confguration.

SimmeNilsson commented 4 years ago

My guess would be question comes from older lib.dom.d.ts and lib.webworker.d.ts only specifying one argument to Worker constructor? https://github.com/microsoft/TypeScript/commit/40bd7c89abbdf79493e2ea20dd80d9eb657dc82e# If I'm not mistaken, it seems to be TypeScript 3.1 and earlier.

developit commented 4 years ago

I'm going to close this one out - from what I can tell, TypeScript's dom.d.ts has supported WorkerType for at least 2 years.