docblockr icon indicating copy to clipboard operation
docblockr copied to clipboard

typescript destructuring

Open laurelnaiad opened this issue 9 years ago • 2 comments

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
}) {
}

laurelnaiad avatar Dec 24 '15 19:12 laurelnaiad

Same for JavaScript Destructuring assignment in function parameters. It produced a similar result, only without the types.

albertorestifo avatar Mar 01 '16 13:03 albertorestifo

@albertorestifo #180 addresses this for JS

MoritzKn avatar Sep 09 '16 17:09 MoritzKn