Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Deprecate typeof-compare #2187

@ajafff

Description

@ajafff

microsoft/TypeScript#13791 has just landed in typescript. This changes typeof to return a union of string literal types.

When this change is shipped with the next release of typescript, the rule typeof-compare can be deprecated. The compiler will then catch comparisons with invalid strings.

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