Skip to content

Consolidating multiple API definitions across the project #17375

@jsantell

Description

@jsantell
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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions