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
module.exports.property
module.exports.y = "hi" let u = module.exports.y/**/
Get quick info at position.
Expected behavior:
The type of module.exports.y is reported as string.
module.exports.y
Actual behavior:
The type of module.exports.y is reported as any, and there aren't any completions, so it seems like it actually is any.
Edit:
var { y } = require('./mod') y/**/
The declared type is used if there is one, even if it contradicts the initialiser (eg /** @type {number} */ module.exports.y = 'hi').
/** @type {number} */ module.exports.y = 'hi'
The text was updated successfully, but these errors were encountered:
const x = require("m")
sandersn
Successfully merging a pull request may close this issue.
Get quick info at position.
Expected behavior:
The type of
module.exports.y
is reported as string.Actual behavior:
The type of
module.exports.y
is reported as any, and there aren't any completions, so it seems like it actually is any.Edit:
The declared type is used if there is one, even if it contradicts the initialiser (eg
/** @type {number} */ module.exports.y = 'hi'
).The text was updated successfully, but these errors were encountered: