From 699f0b226b9220f7ec1c4eef34dccefad3b64e80 Mon Sep 17 00:00:00 2001 From: gscshoyru Date: Wed, 16 Oct 2013 13:32:46 -0400 Subject: [PATCH] Add definitions for new settable zone function Moment.js version 2.1 added a new zone function which takes either a number or string and returns a Moment, see here: http://momentjs.com/docs/#/manipulating/timezone-offset/ . So the definitions for that function should be added to this file. --- moment/moment.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moment/moment.d.ts b/moment/moment.d.ts index 743384f1cb..430d20af26 100644 --- a/moment/moment.d.ts +++ b/moment/moment.d.ts @@ -121,6 +121,8 @@ interface Moment { isLeapYear(): boolean; zone(): number; + zone(b: number) Moment; + zone(b: string): Moment; daysInMonth(): number; isDST(): boolean;