forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
globalize.d.ts
28 lines (23 loc) · 833 Bytes
/
globalize.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Type definitions for Globalize
// Project: https://github.com/jquery/globalize
// Definitions by: Aram Taieb <https://github.com/afromogli/>
// Definitions: https://github.com/afromogli/DefinitelyTyped
interface NumberFormatterOptions {
minimumIntegerDigits?: number;
minimumFractionDigits?: number;
maximumFractionDigits?: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
round?: string;
useGrouping?: boolean;
}
interface Cldr {
/* TODO: add typings */
}
interface GlobalizeStatic {
load(jsonData: any): void;
locale(locale: string): Cldr;
numberFormatter(options?: NumberFormatterOptions): (value: number) => string;
formatNumber(value:number, options?: NumberFormatterOptions): string;
}
declare var Globalize: GlobalizeStatic;