-
- Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed as not planned
Labels
Description
Is your feature request related to a problem? Please describe.
It would be better to write examples in single place.
Describe the solution you'd like
Input:
<<< @/snippets/snippet-with-example.js...? Code file:
/** * Adds two numbers together. * * @example * Here's a simple example: * ``` * // Prints "2": * console.log(add(1,1)); * ``` * * @example * Here's an example with negative numbers: * ``` * // Prints "0": * console.log(add(1,-1)); * ``` */ export function add(x: number, y: number): number { }Output:
Here's a simple example:
// Prints "2": console.log(add(1,1));Here's an example with negative numbers:
// Prints "0": console.log(add(1,-1));Describe alternatives you've considered
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the docs.
- Read the Contributing Guidelines.
- Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
thedamon