Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SharedWorker to the library #24323

Open
mhegazy opened this issue May 22, 2018 · 4 comments
Open

Add SharedWorker to the library #24323

mhegazy opened this issue May 22, 2018 · 4 comments
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this
Milestone

Comments

@mhegazy
Copy link
Contributor

mhegazy commented May 22, 2018

Details in https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker

This should work

var myWorker = new SharedWorker('worker.js');
@mhegazy mhegazy added Bug A bug in TypeScript Help Wanted You can do this Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript labels May 22, 2018
@mhegazy mhegazy added this to the Community milestone May 22, 2018
@mhegazy
Copy link
Contributor Author

mhegazy commented 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
Copy link

shamhub commented May 22, 2018

@mhegazy what about service worker?

@mhegazy
Copy link
Contributor Author

mhegazy commented May 22, 2018

Can you file a new one for these? we need a new lib.serviceworker.d.ts as well.

@Codetoil
Copy link

Codetoil commented Mar 3, 2023

For some reason, SharedWorker exists in the DOM lib, but not in WebWorker lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants