-
Notifications
You must be signed in to change notification settings - Fork 12.8k
types missing with --lib #8097
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
Comments
do not think HTMLCollection or NodeList are available for webworkers. webworkers should not have access to the dom. |
webworkers was a red herring here, I can also repro with:
|
oh, I see, I need This is a problem in angular2 compilation, where we currently compile code that's meant to run in a webworker in the same compilation unit with code that runs in browser, so I would need all the types from
It's too bad that any code depending on angular2 has to typecheck the angular2 .d.ts files, as they contain a mix of webworker and browser code. I can compile with |
Actually, now I cannot reproduce a need for both |
I worked around #8091 by adding to the top of
lib.webworker.d.ts
now I get another error:
TypeScript Version:
nightly (1.9.0-dev.20160409)
Code
The text was updated successfully, but these errors were encountered: