From 3ce44dcc58e583980447f89ffb5b531973acf50f Mon Sep 17 00:00:00 2001 From: Michel Salib Date: Tue, 2 Dec 2014 14:04:06 +0100 Subject: [PATCH] Fix moment-timezone export/import --- moment-timezone/moment-timezone-tests.ts | 2 ++ moment-timezone/moment-timezone.d.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/moment-timezone/moment-timezone-tests.ts b/moment-timezone/moment-timezone-tests.ts index 6ee7a78dd..f6a754c6e 100644 --- a/moment-timezone/moment-timezone-tests.ts +++ b/moment-timezone/moment-timezone-tests.ts @@ -1,5 +1,7 @@ /// +import moment = require('moment-timezone'); + var june = moment("2014-06-01T12:00:00Z"); june.tz('America/Los_Angeles').format('ha z'); diff --git a/moment-timezone/moment-timezone.d.ts b/moment-timezone/moment-timezone.d.ts index 785aeb047..9553faa3a 100644 --- a/moment-timezone/moment-timezone.d.ts +++ b/moment-timezone/moment-timezone.d.ts @@ -50,5 +50,7 @@ interface MomentStatic { } declare module 'moment-timezone' { + var _tmp: MomentStatic; + export = _tmp; }