Skip to content

Syntax highlighting fails with optional properties  #395

@gnomeontherun

Description

@gnomeontherun

Declaring an optional property in an interface breaks the syntax highlighting. For example, the url?: string highlighting stays white, but if you remove the ? it will highlight the type properly.

interface Options {
    url?: string
}

vs.

interface Options {
    url: string
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions