-
Notifications
You must be signed in to change notification settings - Fork 148
Open
Labels
enhancementThe issue is asking for a new feature or design changeThe issue is asking for a new feature or design changeneeds designThe next step is for someone to propose the details of an approach for solving the problemThe next step is for someone to propose the details of an approach for solving the problem
Description
I'm experimenting with the TSDoc Playground and I can't seem to make it parse TypeScript type information. Here's a sample:
/**
* Returns the average of two numbers.
*
* @remarks
* This method is part of the {@link core-library#Statistics | Statistics subsystem}.
*
* @param x - The first input number
* @param y - The second input number
* @returns The arithmetic mean of `x` and `y`
*
* @beta
*/
function getAverage(x: number, y: number) {
return (x + y) / 2.0;
}As you can see, the ParamBlocks in the AST don't include any type annotations for x and y.
- ParamBlock
- BlockTag
* BlockTag="@param"
* Spacing=" "
* ParamBlock_ParameterName="x"
* Spacing=" "
* ParamBlock_Hyphen="-"
* Spacing=" "
- Section
- Paragraph
- PlainText
* PlainText="The first input number"
- SoftBreak
* SoftBreak="\n"
- ParamBlock
- BlockTag
* BlockTag="@param"
* Spacing=" "
* ParamBlock_ParameterName="y"
* Spacing=" "
* ParamBlock_Hyphen="-"
* Spacing=" "
- Section
- Paragraph
- PlainText
* PlainText="The second input number"
- SoftBreak
* SoftBreak="\n"
Thoughts?
liamross and dgroh
Metadata
Metadata
Assignees
Labels
enhancementThe issue is asking for a new feature or design changeThe issue is asking for a new feature or design changeneeds designThe next step is for someone to propose the details of an approach for solving the problemThe next step is for someone to propose the details of an approach for solving the problem