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.

Errors when using TS 1.8 string literal types #966

@joeskeen

Description

@joeskeen

I'm using TS 1.8 beta, and when I try to use the new String Literal Types (microsoft/TypeScript#5185), I get errors:

type CardinalDirection = 'North' | 'East' | 'South' | 'West';
Failed to lint: 
... forbidden bitwise operation, 
... forbidden bitwise operation, 
... forbidden bitwise operation, 
... expected an assignment or function call.

I'm using the latest TSLint (2.5.1).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions