We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeScript Version: nightly (2.5.0-dev.20170629)
Code
// @ts-check /** @typedef Foo {number} */ /** @type {Foo} */ const x = "";
Expected behavior:
Either a syntax error, or correctly set Foo = number and have a type error.
Foo = number
Actual behavior:
No error.
The text was updated successfully, but these errors were encountered:
I'd rather have the syntax error. If we start accepting the wrong syntax, people will start using the wrong syntax.
Sorry, something went wrong.
Fixed by #18662
No branches or pull requests
TypeScript Version: nightly (2.5.0-dev.20170629)
Code
Expected behavior:
Either a syntax error, or correctly set
Foo = number
and have a type error.Actual behavior:
No error.
The text was updated successfully, but these errors were encountered: