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.

How to enable TypeScript 2.1.x Support #149

Closed
@JamesHenry

Description

@JamesHenry

This issue was originally tracked here: #128, but it has now come to its final resolution.

Unfortunately, there was an unintentional breaking change in TypeScript around how it deals with JSDoc comments within some of its public node utility methods that we rely on in this parser.

TS Issue: microsoft/TypeScript#13519

That issue has now been fixed, but will not be released as a patch version of TypeScript 2.1.x

This means that it is not possible to officially support TS 2.1.x in this parser. We will, of course, work to support 2.2.x as soon as possible.

However, because the necessary changes on our side were actually already made, it is still possible for you to use TypeScript 2.1.x on your project.

You can:

  • Install this parser using git: the branch name is ts-2.1
  • Use typescript@next as your TypeScript version (this is the master branch of TypeScript, which contains the fix)

(I think this requires npm 3+ (i.e. Node 6+) because otherwise, the peerDependency conflict would prevent you from installing that combo)

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