Skip to content

Regression in 1.0.5 #84

@Igorbek

Description

@Igorbek

Sample code

export enum A {
  static = 'static'
}

TypeScript 5.0.4

In 1.0.4 it generated something like this:

A.static.displayName = "A.static"
A.static.__docgenInfo = { ... }

In 1.0.5 it generates:

A.static.displayName = "A.static"
static.__docgenInfo = { ... }

(that in this example breaks parsing because static is a reserved word, such that even try/catch doesn't help)

I think it is the result of this commit a91043f

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions