You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* source/add.ts *//** * Adds two numbers. * * @param x - First number. * @param y - Second number * @returns The sum of x and y. */constadd=(x: number,y: number): number=>x+y
The key benefit to have such ability is to have a single source of example without any duplications to be able to present it in a multiple ways simultaneously, like running it and listing its source at the same time.
The text was updated successfully, but these errors were encountered:
satelllte
changed the title
[Question] Is there a way to generate the "@example" tag contents from a source code file?
[Question] Is there a way to generate the "@example" tag contents from an external source file?
Mar 16, 2023
For example,
Here's the source file:
Here's the example source file:
Is there a way to reference the example source file in TSDoc?
Ideally via something like this:
The key benefit to have such ability is to have a single source of example without any duplications to be able to present it in a multiple ways simultaneously, like running it and listing its source at the same time.
The text was updated successfully, but these errors were encountered: