-
Notifications
You must be signed in to change notification settings - Fork 22
feat: support array examples at arbitrary levels #853
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test cases look good.
What is your plan regarding call-sites that are using arrayExample
today?
Please add the missing semicolon that the linter flagged and once we have a solid roll-out plan, this looks good to merge
First step is to update all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to not consider this a breaking change since the removed arrayExample
tag is undocumented and was recently added -- so adoption is expected to be minimal.
Approving but not merging yet so you can coordinate this with your other PRs
🎉 This PR is included in version @api-ts/[email protected] 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version @api-ts/[email protected] 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version @api-ts/[email protected] 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version @api-ts/[email protected] 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version @api-ts/[email protected] 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
DX-622
This PR removes support for the @arrayExample jsdoc, and extends the functionality of the @example tag so that it can be used with arrays to show array example and non-array examples as well.
This is how to use the new functionality.
Case 1.
Want to show an example of an item within the array
This will render as this:
Case 2. Want to render an array example
This is how it would render:
Case 3. Want to render an item + array example
This is how it would render: