Open
Description
I have a function with this definition:
/**
* Transforms a vector by a matrix.
*
* @param r - A transformation matrix.
* @param v - A vector.
*
* @returns The transformed vector.
*/
export function transform(
[[r11, r12, r13], [r21, r22, r23], [r31, r32, r33]]: Matrix,
[x, y, z]: Vector,
): Vector {
return [
r11 * x + r12 * y + r13 * z,
r21 * x + r22 * y + r23 * z,
r31 * x + r32 * y + r33 * z,
];
}
I generate TSDoc documentation from this, which you can see correctly associates the @param
tag with the parameters that use destructuring:

However, JSR fails to make the same association, and documents these parameters as "unnamed":

Metadata
Metadata
Assignees
Type
Projects
Status
Ready