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
no-undefined-types
No error when casting generic types.
The type 'T' is undefined. (jsdoc/no-undefined-types)
module.exports = { root: true, parser: "@babel/eslint-parser", parserOptions: { requireConfigFile: false, }, env: { browser: true, es2021: true, }, extends: "eslint:recommended", plugins: [ "jsdoc", ], settings: { jsdoc: { mode: "typescript", }, }, rules: { "jsdoc/no-undefined-types": ["error"], }, };
/** * @template T */ export class Foo { // cast to T getType() { const x = "hello"; const y = /** @type {T} */ (x); return y; } }
v16.13.0
v8.2.0
37.4.0
The text was updated successfully, but these errors were encountered:
Hmm I think this might be a duplicate of #559, not sure
Sorry, something went wrong.
9962b22
🎉 This issue has been resolved in version 37.5.1 🎉
The release is available on:
Your semantic-release bot 📦🚀
No branches or pull requests
Expected behavior
No error when casting generic types.
Actual behavior
The type 'T' is undefined. (jsdoc/no-undefined-types)
ESLint Config
ESLint sample
Environment
v16.13.0
v8.2.0
37.4.0
The text was updated successfully, but these errors were encountered: