What I want to do looks like this:
/**
* @class OrganizationDescriptor
*/
export type OrganizationDescriptor = {|
organizationId: string
|};
and then when I use this type as a parameter, document it:
/**
* @param {OrganizationDescriptor} descriptor.organizationId returns {@link OrganizationDescriptor}
*/
I tried assigning a function that returns an object with an organizationId string type. It does work, but it will require a lot of time editing my current codebase.
Is there a way to export type and use it as type reference of a parameter?
I run documentation v12.1.4 and run it using Node.js