-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
JSDoc documentation versus documentation in *.d.ts
#10673
Comments
tl;dr the typings used to be separate, so documentation was duplicated in many places. |
@SimonSchick - I see. Thanks for the fast response 😁 While sequelize itself doesn't use TS, do you know any tool to generate documentation from Also, is it possible to use syntax similar to |
I don't think that As for generating documentation, I worked with some generators before but their capabilities were extremely limited, you are welcome to make suggestions. |
I see. I've asked a question in typedoc to see if it would be possible to use that. Other than that, I have no idea... Maybe we will have to put up with duplicated docs while sequelize doesn't move to TS. It's not ideal but I don't think it's that terrible either... |
@SimonSchick - Apparently it is possible to use typedoc. I do not have the time to try it out though... Just letting you know. |
I just tried to use this generator. $ typedoc --exclude node_modules/ --includeDeclarations --out typedoc/ --readme README.md --name Sequelize types/lib |
Ultimately this is up to @sushantdhiman as this would drastically alter the current documentation and might make it harder for non TS users to read, we could co-host a type-doc version but that's not my call 😄 |
This issue has been automatically marked as stale because it has been open for 14 days without activity. It will be closed if no further activity occurs within the next 14 days. If this is still an issue, just leave a comment or remove the "stale" label. 🙂 |
Is it intended that the two parameter documentations below aren't the same?
sequelize/lib/sequelize.js
Line 319 in abfe7e5
sequelize/types/lib/sequelize.d.ts
Lines 1017 to 1018 in abfe7e5
Also, since now we have duplicated documentation on the source files and on
.d.ts
files, is there a concrete way to prevent documentation from being updated only in one place?Pinging @SimonSchick since I know you're highly involved in the typescript things in Sequelize. Thanks for looking!
The text was updated successfully, but these errors were encountered: