Description
Search Terms
JSDoc, destrucutred object, function
Expected Behavior
Hello guys. I'm using the Typedoc API to generate a custom library documentation website. Apparently default values of destructured object parameters are not being recognized by Typedoc. Here is a brief of the component i'm extracting:
/**
* Checkbox, casilla de valor binario
*
* @category Components
*
* @param { object } props
* @param { any } props.value Valor del Checkbox.
* @param { any } [props.trueValue = true] Valor cuando la casilla está activa.
* @param { any } [props.falseValue = false] Valor customizado cuando la casilla está desactivada.
*/
const Checkbox = ({
value,
trueValue = true,
falseValue = false,
...
}) => {...}
This is the only SignatureReflection
for a Checkbox
component, where the defaultValue
should be the pointed either in JSDoc or in the destructured object.
Actual Behavior
None of JSDoc or in the destructured object is giving a default value, setting DeclarationReflection.defaultValue
as undefined
.
Steps to reproduce the bug
The bug is produced documenting in JSDoc and giving default values to destructured objects as parameters of a function.
Environment
- Typedoc version: 0.25.1
- TypeScript version: 5.2.2 (Even though, i'm documenting with just JSDoc
- Node.js version: 20.5.1
- OS: Windows 11
Extra
Would be nice if i could solve it myself and do a pull request but i'm not sure where to dig in.