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

Description

@azz

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

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

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions