-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathtimezone-js.d.ts
38 lines (31 loc) · 1.09 KB
/
timezone-js.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
29
30
31
32
33
34
35
36
37
38
module "timezone-js" {
export var timezone : TimezoneJs;
export var Date: {
new (timezone?: string): TimezoneJsDate;
new (time: string, timezone?: string): TimezoneJsDate;
new (year?: number, month?: number, day?: number, hour?: number, minute?: number, second?: string, timezone?: string): TimezoneJsDate;
};
interface TimezoneJsDate extends Date {
setTimezone: (timezone: string) => void;
};
class TimezoneJs {
zoneFileBasePath: string;
loadingScheme: TimezoneJsLoadingScheme;
loadingSchemes: TimezoneJsLoadingSchemes;
transport(opts: TimezoneJsOptions): any;
init(opts?: TimezoneJsOptions): any;
};
interface TimezoneJsOptions {
async?: bool;
success?: (data: string) => any;
error?: (err: Error) => any;
url?: string;
};
interface TimezoneJsLoadingScheme {
};
interface TimezoneJsLoadingSchemes {
PRELOAD_ALL: TimezoneJsLoadingScheme;
LAZY_LOAD: TimezoneJsLoadingScheme;
MANUAL_LOAD: TimezoneJsLoadingScheme;
};
}