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
@name
It is the code from the documentation (https://jsdoc.app/tags-name.html):
// @ts-check /** * @name highlightSearchTerm * @function * @global * @param {string} term - The search term to highlight. */ eval("window.highlightSearchTerm = function(term) {};") window.highlightSearchTerm("");
But it still returns an error:
Property 'highlightSearchTerm' does not exist on type 'Window & typeof globalThis'.ts(2339)
Live inline example - https://codesandbox.io/s/jsdoc-name-test-1u224k?file=/src/index.js (locally in VSCode there is the same error)
QUESTION: Why does @name not work? What should I replace it with?
My target code is supposed to be like this:
// @ts-check /** * @name highlightSearchTerm * @function * @global * @param {string} term - The search term to highlight. */ highlightSearchTerm("");
...because it's a function from another file, it uses in userScript, but so far even the version with window doesn't work.
window
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It is the code from the documentation (https://jsdoc.app/tags-name.html):
But it still returns an error:
Live inline example - https://codesandbox.io/s/jsdoc-name-test-1u224k?file=/src/index.js (locally in VSCode there is the same error)
QUESTION: Why does
@name
not work? What should I replace it with?My target code is supposed to be like this:
...because it's a function from another file, it uses in userScript, but so far even the version with
window
doesn't work.The text was updated successfully, but these errors were encountered: