From 699f0b226b9220f7ec1c4eef34dccefad3b64e80 Mon Sep 17 00:00:00 2001 From: gscshoyru Date: Wed, 16 Oct 2013 13:32:46 -0400 Subject: [PATCH 1/2] 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; From 2b8296e8c0b4bb6c2020dfc4248c7a6b9eb73ac4 Mon Sep 17 00:00:00 2001 From: Basarat Syed Date: Mon, 11 Nov 2013 18:02:48 +1100 Subject: [PATCH 2/2] definition fix --- moment/moment.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moment/moment.d.ts b/moment/moment.d.ts index 430d20af26..700a2a1c14 100644 --- a/moment/moment.d.ts +++ b/moment/moment.d.ts @@ -121,7 +121,7 @@ interface Moment { isLeapYear(): boolean; zone(): number; - zone(b: number) Moment; + zone(b: number): Moment; zone(b: string): Moment; daysInMonth(): number; isDST(): boolean;