Skip to content
This repository was archived by the owner on Jun 11, 2020. It is now read-only.
This repository was archived by the owner on Jun 11, 2020. It is now read-only.

Do not depend on environmental typings? #107

@blakeembrey

Description

@blakeembrey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions