-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Auto-generated API docs seem not to be using TypeScript files #496
Comments
Saw this after reviewing the PR. Yikes! Thanks @MysteryBlokHed for the PR! |
@MysteryBlokHed So to be clear, what are the JSDoc comments in the |
At the moment, I don't think they do anything other than maybe provide IntelliSense while working on the library itself. I'd be for removing JSDoc from the JavaScript files personally, to avoid confusion for contributors as to where docs come from. Anything that’s currently documented there is probably from before the TypeScript types were added. |
Oof, but having the comments in a completely different place instead of when working on the actual source is also very suboptimal. Is there any way to merge the two for typedoc, so we don't have to duplicate them and they can still live together with their definitions? If not, it may be time to move to TypeScript. :/ |
Something might be possible with the Even on DefinitelyTyped (Microsoft's repository for library typings), documentation is just manually copied from the source libraries. |
I just opened this to discuss: #499 |
If you look at the new API page (https://colorjs.io/api/), many variables and parameters just have
any
as their types. It looks to me like TypeDoc is pointed at the wrong files (i.e. the JS source instead of.d.ts
files).Here's the page for the Color class, for example: https://colorjs.io/api/classes/color.color
The text was updated successfully, but these errors were encountered: