-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Report Syntax Errors in JSDocs Type Annotations #13371
Comments
Also related to #6802 |
This is more important now that we have |
Note: |
Fix is up at #16156 |
Just got tripped up by this: // @ts-check
/** @typedef Foo {number} */
/** @type Foo */
const x = ""; This isn't an error today. Could we report an error on a |
The error there is actually on the |
From microsoft/vscode#18229
TypeScript Version: 2.2.0-dev.20170109
Code
In a JS file:
Expected behavior:
Reports a syntax error when trying to parse the JSDoc type annotation
Actual behavior:
No error reported.
x
hasany
typeThe text was updated successfully, but these errors were encountered: