Last active
April 9, 2021 14:34
-
-
Save olvresc/769053926cbdf655ac5656d66ef91fc3 to your computer and use it in GitHub Desktop.
Extend parent and child typedef in JSDoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Extend `typedef` example for array of objects | |
* | |
* --- | |
* @typedef {object} Parent | |
* @property {string|number} id | |
* @property {object[]} fields | |
* @property {string} fields[].code | |
* @property {*} fields[].value | |
* | |
* @typedef {Parent} Child | |
* @return {Child[]} | |
* / | |
function func() {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment