-
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
docgen: pull type definitions from @typedef #15186
Comments
A good use case for this is the block-editor' |
Prior art: In a recent side-project I worked on, I was fortunate to reference the REST API documentation of Mixer.com. One nice thing about it is that, for each "Request" or "Response" overview, any custom type will link to the relevant description and properties (example), which can be recursive as well for custom types within those properties. For
For each function description, if a parameter or return type is a custom type, it should link to the relevant type description on the same page. We will need to find some appropriate way to distinguish between types internal to the package itself, vs. types imported from other WordPress packages (link to the relevant README), vs. types imported from third-party packages (link to...their GitHub/npm listing?) |
I'm triagging issues we don't plan to tackle. We can reopen if it regains interest. |
There are a few places in the codebase where we document our custom types. We should have a way to document them and use them in other symbols' docs.
The text was updated successfully, but these errors were encountered: