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.

Definite assignment assertions not in AST #424

Closed
@azz

Description

@azz

What version of TypeScript are you using?
[email protected]

What version of typescript-eslint-parser are you using?
master

What code were you trying to parse?

class X { a!: any }

What did you expect to happen?
Something like definite: true or exclamationToken: true in the AST. In the TS AST it is called exclamationToken.

New in microsoft/TypeScript#20166

What happened?

{
  type: 'ClassProperty',
  range: [ 10, 17 ],
  loc: {...},
  key:  {...},
  value: null,
  computed: false,
  static: false,
  readonly: undefined,
  typeAnnotation:  {...}
}

Thoughts on which property name to go for?

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