Skip to content

Question: Grammar change to allow , in type annotations #6604

@basarat

Description

@basarat

I couldn't find any issue regarding this, but the following works now:

var foo: {a:any,b:any} // notice the `,` 

Was this change intentional. Should I consider it stable?

I see that the team still uses ; e.g. check the interface members in https://github.com/Microsoft/TypeScript/blob/master/src/compiler/types.ts 🌹

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions