You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSDoc allows you to specify the type of parameters or the return value in JavaScript code like:
/** * Represents a book. * @param {string} title - The title of the book. * @param {string} author - The author of the book. * @returns {boolean} */functionBook(title,author){}
However, though Deno 2 claims to support both TypeScript and JavaScript development, it doesn't support this method of specifying types. To be more specific, when I include JSDoc like the above, the {string} and {boolean} strings are ignored and the documentation produced doesn't include the type of parameters or return values.
The text was updated successfully, but these errors were encountered:
Can you show a full reproduction (What does your file look like? What command are you running?)? Does that javascript file have // @ts-check at the top?
$ deno --version
deno 2.1.4 (stable, release, x86_64-pc-windows-msvc)
v8 13.0.245.12-rusty
typescript 5.6.2
JSDoc allows you to specify the type of parameters or the return value in JavaScript code like:
However, though Deno 2 claims to support both TypeScript and JavaScript development, it doesn't support this method of specifying types. To be more specific, when I include JSDoc like the above, the
{string}
and{boolean}
strings are ignored and the documentation produced doesn't include the type of parameters or return values.The text was updated successfully, but these errors were encountered: