UNPKG

364 BTypeScriptView Raw
1/// <reference types="node"/>
2
3declare namespace Geld {
4 interface Options {
5 currency?: string;
6 currencyPosition?: 'before' | 'after';
7 decimals?: number;
8 decimalSeparator?: string;
9 orderSeparator?: string;
10 zeroDecimals?: string;
11 space?: string;
12 }
13}
14
15declare function geld(
16 value: number | string,
17 options?: Geld.Options
18): string;
19
20export = geld;