-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Description
Description of the problem
Right now, typescript definitions, multi-language documentation, and inline JSDoc types in some source files all describe API capabilities and is a struggle to keep in sync.
I'm not terribly familiar with Typescript definitions, but there are a handful of tools to generate documentation from JSDocs etc.. is there a way that there can be one source of truth (typescript defs?) that in turn can generate the documentation? There could possibly be a light test to ensure that changes to signatures are accompanied by the appropriate doc change.
I think this would be very beneficial for the project, reducing conflicting and missing documentation, as well as maintenance cost for the changes. Has there been previous discussions regarding consolidating these docs? Is this something others are interested in, and workable within the project? Any reasons why the API docs content could not be generated by Typescript defs/WebIDL/jsdoc etc?