doc: @types/node JSDoc integration - guidance and call to collaboration #39340
Replies: 3 comments 5 replies
-
Fixes for the JSON doc output are welcome. You can PR them in here. Or open specific issues. The code that generates the JSOn docs is in |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if you're talking about Node.js docs or other work, but if Node.js core stuff, it's all MIT licensed so the licensing and even crediting should be pretty straightforward. |
Beta Was this translation helpful? Give feedback.
-
You've probably noticed this, but just in case: There has been an effort lately to add JSDoc typings for the Node.js internal modules, so that might be useful. I believe @VoltrexMaster has been doing much (most? all?) of the work there. |
Beta Was this translation helpful? Give feedback.
-
Rationale
NodeJS docs are currently not well integrated into any IDEs which generally slows down developers as they have to consult the official documentation website (which may go down) or an offline copy, a mental context switch is required when wanting to look up even small details such as a functions description/behaviour.
@types/node has made NodeJS application development significantly faster, safer and easier (minus initial setup 😃 ) due to TypeScript's inherit properties and has already resolved a good amount of the aforementioned context-switches, I however believe there is still a lot of potential to improve this.
Documentation integration and upkeep in the type definitions has been a major chore and was often done very inconsistently (I'm very guilty of this).
In order to improve the development experience and reduce the reliance of developers on mutliple sources NodeJS documentation can and should be more tightly coupled/integrated with the current
@types/node
distribution.Work
Over the last couple of weeks I've invested a fair amount of time writing some scripts that incorporate a very large amount of existing NodeJS documentation into the current TypeScript definition.
The current progress of this effort can be inspected here DefinitelyTyped/DefinitelyTyped#54417
Asks
Beta Was this translation helpful? Give feedback.
All reactions