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
in ts code everything is ok
// Argument of type 'number' is not assignable to parameter of type 'T' const a: <T>(func: (x: T, y: T) => T, x: T) => T = (func, x) => func(x, 2)
in js code no error
/** @type {<T>(func: (x: T, y: T) => T, x: T) => T} */ const a = (func, x) => func(x, 2)
no error in js code
the same error as in ts code
The text was updated successfully, but these errors were encountered:
Duplicate of #42060
Sorry, something went wrong.
sandersn
No branches or pull requests
Bug Report
🔎 Search Terms jsdoc template missing no check
🕗 Version & Regression Information 4.3.0-dev.20210415
💻 Code
in ts code everything is ok
in js code no error
🙁 Actual behavior
no error in js code
🙂 Expected behavior
the same error as in ts code
The text was updated successfully, but these errors were encountered: