You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 11, 2020. It is now read-only.
I think I've brought this up a few times privately now, but I recently saw microsoft/TypeScript#10250 and thought I should bring it up publicly now. Having a dependency on an environment that does not exist can be bad and easily introduces numerous bugs. The most prolific is when DefinitelyTyped started introducing global Promise typings when you may have been running on node 0.10 which does not have promises. However, the same thing can exist else - for instance, using or exposing a specific method from http.Request or Buffer, etc. can create subtle bugs in the runtime while compile time tells you everything is good.