Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jonchardy committed Aug 25, 2023
1 parent b1702e3 commit ce21614
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
/**
* The signature for a function acting as an event handler.
* A class.
*/
export type EventHandler = ((e: Event) => void);
class MyClass {
/**
* My summary documentation, which is duplicated.
* @param digits - must be a non-negative integer
* @returns a function that converts a string to a string without so many decimals
* @see See string is also duplicated.
*/
public static stringifyFixed(digits: number): (val: string) => string {
return (val: string) => parseFloat(val).toFixed(digits).toString();
}
}

0 comments on commit ce21614

Please sign in to comment.