-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
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
support using types declared in JSDoc comments #393
Comments
This is an odd bug. |
I'm having the same Issues. Additionally it also ignores JSDoc typedefinitions. /**
* @typedef {Object} input - An input
* @property {number[]} input.string - Example prop
* @property {number} input.num - Example prop
*/
/**
* To decode the uplink data
* @access private
* @param {input} input - The object to decode
* @returns {output} - The decoded object
*/
function decode(input) {
...
} is not included in the HTML output. |
I do not publish on deno.land/x, thus I do not know if it also occurs on it. I edited my issue to add a link to my repository: https://gitlab.com/libshare/pwa After a pull, calling TypeScript documentation seems to be generated with the types in it, I suppose the |
I created a new repository with only one JavaScript file, with a function and a class in it, with JSDoc comments. I host it on both Gitlab and Github, and attached a hook to deno.land/x.
As an answer, it seems neither the local I hope I did it correctly for the hook, it's my first time. Here are links for you to check:
|
Sorry to dig up an old-ish issue, but I'm having the same problem with constructor parameters intermittently. I'll try to throw together a repro as soon as I can. |
When using
deno doc
without thehtml
option and JavaScript files, it correctly output the attributes/properties/parameters type hint, see below.When using the
html
, the rendered html does not output type hints, see the capture below.In
html
there is also no output for the constructor documentation not class properties.User story if needed: HTML documentation output should render type hints on JavaScript files and also display class properties information
Link to my repository: https://gitlab.com/libshare/pwa
Without
html
option Command Line:With html option
If the issue is not well-formatted or need more information I will gladly improve its content
BTW: thanks for implementing the HTML option, I have been waiting for it :)
Edit: added a link my repository
The text was updated successfully, but these errors were encountered: