Trying to find a solution for implementing TSDocs with a string literal type declaration in TypeScript.
For instance:
type InputType =
/** Comment should also appear for num1 */
'num1' |
/** Would like the TSDoc to be visible for num2 as well */
'num2'
export const test = (...input: InputType[]) => {
return input
}
tac('num1')
Wanting to display TSDoc comments for 'num1'
& 'num2'
in tools like VSCode, but currently not working for 'ma1'
.
Any ideas on how to achieve this?