mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-10 04:00:10 +00:00
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:
2
moment/moment.d.ts
vendored
2
moment/moment.d.ts
vendored
@@ -121,6 +121,8 @@ interface Moment {
|
||||
|
||||
isLeapYear(): boolean;
|
||||
zone(): number;
|
||||
zone(b: number) Moment;
|
||||
zone(b: string): Moment;
|
||||
daysInMonth(): number;
|
||||
isDST(): boolean;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user