-
Notifications
You must be signed in to change notification settings - Fork 441
Create lib.common.d.ts? #1402
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
I stumble upon another issue today that TypeScript thinks that NodeJS web streams are not the same as DOM web streamsWhen i tried this code it throws an error saying that they are not compatible with each other. one comes from Even tough they are exactly the same You should definitely consider splitting up
I think that that just the other week i had a beef with atob / btoa where it said that they where deprecated in NodeJS but not the DOM So i think that it would be worth it if every project extended |
and btw, i think all the issues in @saschanaz #1402 (comment) where he linked to a few issues should be closed as a duplicate of this issue as i think this issue is the right path forward.
|
That's in no way official at this point, so I'd rather not use it.
Wrong. 😉 |
I meet a similar issue. You can't use And we also want |
Situations like #1368 will keep happening as the commonly implemented interfaces update their definitions time to time. It might be worth to have a separate library for this.
The requirement to enter the common lib would be "2+ browser engine implementations (Gecko, Blink, WebKit)" + "2+ non-browser implementations (node, deno, etc.)".
See also #1154 and microsoft/TypeScript#43972. (The existence of yet-unofficial https://common-min-api.proposal.wintercg.org/ is especially interesting. The spec being unofficial does not block anything here as we can just use BCD. Very fortunate that BCD covers non-browser impls! 🚀)
The text was updated successfully, but these errors were encountered: