Use modern UMD syntax

I didn't think this worked for functions until I tested it.
This commit is contained in:
Nathan Shively-Sanders 2019-08-05 12:52:55 -07:00
parent aeafe3ea2d
commit 0aa20d6f8d

View File

@ -3,8 +3,7 @@
// Definitions by: Mendy Berger <https://github.com/MendyBerger>
// 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;