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
// @ts-check /** @type {(x: number, y: number, z: number) => string} */ function foo(x, y, z) { return 100; }
Expected: Error. Actual: No error.
The text was updated successfully, but these errors were encountered:
Note: doesn't repro for function expressions:
var foo = function (... // or var bar = (...
Sorry, something went wrong.
getJSDocReturnType only looks at @return tags, it doesn't check @type tags to see whether their type node has a return type. Seems easy to fix.
getJSDocReturnType
@return
@type
sandersn
No branches or pull requests
Expected: Error.
Actual: No error.
The text was updated successfully, but these errors were encountered: