mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
Fix moment-timezone export/import
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
/// <reference path="moment-timezone.d.ts" />
|
||||
|
||||
import moment = require('moment-timezone');
|
||||
|
||||
var june = moment("2014-06-01T12:00:00Z");
|
||||
june.tz('America/Los_Angeles').format('ha z');
|
||||
|
||||
|
||||
2
moment-timezone/moment-timezone.d.ts
vendored
2
moment-timezone/moment-timezone.d.ts
vendored
@@ -50,5 +50,7 @@ interface MomentStatic {
|
||||
}
|
||||
|
||||
declare module 'moment-timezone' {
|
||||
var _tmp: MomentStatic;
|
||||
|
||||
export = _tmp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user