Skip to content

[ts] support optional chaining operator #283

Closed

Description

@alur

Activity

  1. alur commented on Jan 16, 2020

    @alur
    Author

    I noticed you already had a commit for this (5d7f6d2), but it doesn't seem to work.

    Even for something simple like

    const x = z?.a;
    let y = 2;
  2. marijnh commented on Jan 17, 2020

    @marijnh
    Member

    My bad, I added it to the JS mode (since it's also about to become standard there), but didn't notice that the TypeScript mode overrode the rule that it occurred in, so it wasn't working there yet. Attached patch fixes that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions