-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
The dom.iterable lib contains many interfaces that should also be in webworker #32435
Comments
Unfortunately, I missed this for 3.8. I'm going to move to 3.9 and look at it early in the release cycle with @orta. |
Same, I forgot this again. =( I'll try to get to it in a couple of weeks for 4.0. |
Like #20595, the solution to this problem is to move the webworker-shared parts of |
The problem is still present in TypeScript 4.3.4 and it's really annoying. I use |
I am having this issue too, but with Going to try this comment's suggestion to UPDATE: Ok, so |
looks like the issue is still present? |
Many of the interfaces defined in dom.iterable should also be available to web workers. These include:
Headers
FormData
URLSearchParams
And since the
dom.iterable
library does not play well with thewebworker
library, I have to define these interfaces in my own, separate, library (instead of just including built-in libraries).The
webworker
library should either also have an "iterable" variant, or these interfaces should be abstracted to a higher level.TypeScript Version: 3.5.3, master
Search Terms:
dom iterable worker
Code
Expected behavior:
This should compile fine (as it does when using
--lib esnext,dom,dom.iterable
).Actual behavior:
Playground Link:
Can't show this in the playground as I can't specify
--lib
options.Related Issues:
Somewhat related to: #20595
The text was updated successfully, but these errors were encountered: