mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
first batch: the easy pickings - as per https://github.com/borisyankov/DefinitelyTyped/issues/115 - added DT headers (scraped creators from git history) - added tests - some modifications - added CONTRIBUTORS.md for the substantial defs (>50 LOC)
27 lines
418 B
TypeScript
27 lines
418 B
TypeScript
/// <reference path="timezone-js.d.ts" />
|
|
|
|
import timezone = require('timezone-js');
|
|
var tz = timezone.timezone;
|
|
|
|
var value: any;
|
|
var str: string;
|
|
var bool: boolean;
|
|
|
|
var opts: timezone.TimezoneJsOptions = {
|
|
async: bool,
|
|
success: (data: string) => {
|
|
|
|
},
|
|
error: (err: Error) => {
|
|
|
|
},
|
|
url: str
|
|
};
|
|
|
|
str = tz.zoneFileBasePath;
|
|
tz.loadingScheme;
|
|
tz.loadingSchemes;
|
|
|
|
value = tz.transport(opts);
|
|
value = tz.init(opts);
|