From 0aa20d6f8dfd153463d8a4300fbeb3791c7d965d Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Mon, 5 Aug 2019 12:52:55 -0700 Subject: [PATCH] Use modern UMD syntax I didn't think this worked for functions until I tested it. --- types/gematriya/index.d.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/types/gematriya/index.d.ts b/types/gematriya/index.d.ts index ae77b0df10..b3b40b8571 100644 --- a/types/gematriya/index.d.ts +++ b/types/gematriya/index.d.ts @@ -3,8 +3,7 @@ // Definitions by: Mendy Berger // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare global { - function gematriya(num: number, options?: { limit?: number, punctuate?: boolean, geresh?: boolean }): string; - function gematriya(str: string, options?: { order?: boolean }): number; -} +declare function gematriya(num: number, options?: { limit?: number, punctuate?: boolean, geresh?: boolean }): string; +declare function gematriya(str: string, options?: { order?: boolean }): number; export = gematriya; +export as namespace gematriya;