Skip to content
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

Handle @type without curly braces #16947

Closed
ghost opened this issue Jul 5, 2017 · 0 comments
Closed

Handle @type without curly braces #16947

ghost opened this issue Jul 5, 2017 · 0 comments
Labels
Domain: JSDoc Relates to JSDoc parsing and type generation Fixed A PR has been merged for this issue

Comments

@ghost
Copy link

ghost commented Jul 5, 2017

TypeScript Version: nightly (2.5.0-dev.20170629)

Code

// @ts-check

/** @type number */
const x = "";

Expected behavior:

Syntax error: @type needs curly braces.

Actual behavior:

No error.

@ghost ghost added the Salsa label Jul 5, 2017
@ghost ghost added the Domain: JSDoc Relates to JSDoc parsing and type generation label Sep 21, 2017
@ghost ghost closed this as completed in #18664 Sep 22, 2017
@ghost ghost added the Fixed A PR has been merged for this issue label Sep 22, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Domain: JSDoc Relates to JSDoc parsing and type generation Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

0 participants