diff --git a/src/index.ts b/src/index.ts index ab127c0..de7745f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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(); + } +}