docblockr
docblockr copied to clipboard
typescript destructuring
docblockr doesn't know how to handle this:
export function myFunc(specs: {
someProp: string | string[],
someOtherProp: string,
someProp3: () => any
}) {
}
it results in this:
/**
* [myFunc description]
* @param {string | string[]} specs [description]
* @param {string} someOtherProp [description]
* @param {(} someProp3 [description]
* @return {[type]} [description]
*/
export function myFunc(specs: {
someProp: string | string[],
someOtherProp: string,
someProp3: () => any
}) {
}
Same for JavaScript Destructuring assignment in function parameters. It produced a similar result, only without the types.
@albertorestifo #180 addresses this for JS