We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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.