🔎 Search Terms
jsdoc import @import callback lsp
🕗 Version & Regression Information
5.5 beta
- I was unable to test this on prior versions because it's a new feature in 5.5. It was appearing in nightlies and I waited for the beta to confirm it's still there.
⏯ Playground Link
No response
💻 Code
/**
* @import {Checker, Passable} from '@endo/pass-style';
*/
/**
* @callback GetChecker
* @param {Passable} payload
* @returns {Checker}
*/
/**
* @typedef {object} Misc
* @property {Passable} passable
*/
🙁 Actual behavior
The Checker import is dim in an IDE and hovering says,
'Checker' is declared but never used.ts(6196)
🙂 Expected behavior
LSP detects that Checker is in the return of GetChecker.
Additional information about the issue
The use is detected in @typedef and @type. E.g. as with Passable in the example code.
🔎 Search Terms
jsdoc import @import callback lsp
🕗 Version & Regression Information
5.5 beta
⏯ Playground Link
No response
💻 Code
🙁 Actual behavior
The
Checkerimport is dim in an IDE and hovering says,🙂 Expected behavior
LSP detects that
Checkeris in the return ofGetChecker.Additional information about the issue
The use is detected in
@typedefand@type. E.g. as withPassablein the example code.