Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Support unique symbol type (TS 2.7) #426

Closed
@ikatyang

Description

@ikatyang

What version of TypeScript are you using?
typescript@2.7.0-dev.20171226

What version of typescript-eslint-parser are you using?
eslint/typescript-eslint-parser#e94ede3

What code were you trying to parse?

type A = unique symbol;
type B = keyof something;

What did you expect to happen?

[
  { "type": "TSTypeOperator", "operator": "TSUniqueKeyword" },
  { "type": "TSTypeOperator", "operator": "TSKeyOfKeyword"  },
]

What happened?

[
  { "type": "TSTypeOperator", "operator": 140 },
  { "type": "TSTypeOperator", "operator": 127 },
]

Ref: microsoft/TypeScript#15473

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