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.
This commit is contained in:
gscshoyru
2013-10-16 13:32:46 -04:00
parent 12d12c69ff
commit 699f0b226b

2
moment/moment.d.ts vendored
View File

@@ -121,6 +121,8 @@ interface Moment {
isLeapYear(): boolean;
zone(): number;
zone(b: number) Moment;
zone(b: string): Moment;
daysInMonth(): number;
isDST(): boolean;