Details in https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker This should work ```ts var myWorker = new SharedWorker('worker.js'); ```
Activity
mhegazy commentedon May 22, 2018
PRs welcomed. You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes.
shamhub commentedon May 22, 2018
Mohamed Hegazy (@mhegazy) what about service worker?
mhegazy commentedon May 22, 2018
Can you file a new one for these? we need a new lib.serviceworker.d.ts as well.
Codetoil commentedon Mar 3, 2023
For some reason, SharedWorker exists in the DOM lib, but not in WebWorker lib.
RyanCavanaugh commentedon Jul 23, 2025
This is now in both worker and standard dom lib