From 455f136d0a006d87beddc3db1284461bb06c3c2a Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Mon, 5 Aug 2019 13:02:29 -0700 Subject: [PATCH] Use modern UMD syntax (#37378) 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;