-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: handle multiple declarations by outputting twice
Co-authored-by: Braden Wiggins <[email protected]>
- Loading branch information
Showing
3 changed files
with
49 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'extractinator': minor | ||
--- | ||
|
||
feat: handle multiple declarations by outputting twice |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* Adds two or three numbers together. | ||
* @param a The first number to add. | ||
* @param b The second number to add. | ||
* @returns The sum of the two numbers. | ||
*/ | ||
export function add(a: number, b: number): number | ||
|
||
/** | ||
* Adds two or three numbers together. | ||
* @param a The first number to add. | ||
* @param b The second number to add. | ||
* @param c The third number to add. | ||
* @returns The sum of the three numbers. | ||
*/ | ||
export function add(a: number, b: number, c: number): number | ||
|
||
/** | ||
* Adds two or three numbers together. | ||
* @param a The first number to add. | ||
* @param b The second number to add. | ||
* @param c Optional third number to add. | ||
* @returns The sum of the input numbers. | ||
*/ | ||
export function add(a: number, b: number, c?: number): number { | ||
return a + b + (c ?? 0) | ||
} |