Skip to content

Syntax highlighting fails with optional properties #395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gnomeontherun opened this issue Jun 17, 2015 · 1 comment
Closed

Syntax highlighting fails with optional properties #395

gnomeontherun opened this issue Jun 17, 2015 · 1 comment

Comments

@gnomeontherun
Copy link

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
}
@basarat
Copy link
Member

basarat commented Jun 18, 2015

v4.5.15 🌹

@TypeStrong TypeStrong locked and limited conversation to collaborators Jan 20, 2019
angelestelar5z added a commit to angelestelar5z/atom-typescript that referenced this issue Aug 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants