fixed some breaks

This commit is contained in:
Bart van den Burg 2015-08-03 10:41:58 +02:00
parent 156f4647c9
commit 6a51cc52ef
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ var range2: moment.Range = moment.range(moment("2011-04-15", "YYYY-MM-DD"), mome
var range3: moment.Range = moment.range([moment("2011-04-15", "YYYY-MM-DD"), moment("2011-11-27", "YYYY-MM-DD")]);
var range4: moment.Range = moment.range("2015-01-17T09:50:04+00:00/2015-04-17T08:29:55+00:00");
var date: moment.Moment = moment(2012, 4, 15);
var date: moment.Moment = moment('2012-05- 15');
var res1: boolean = range.contains(date);
var res2: boolean = range.contains(date, false);

View File

@ -27,8 +27,8 @@ declare module moment {
start: Moment;
end: Moment;
contains (other: Date, exclusive = false): boolean;
contains (other: Moment, exclusive = false): boolean;
contains (other: Date, exclusive?: boolean): boolean;
contains (other: Moment, exclusive?: boolean): boolean;
overlaps (range: Range): boolean;
@ -38,8 +38,8 @@ declare module moment {
subtract (other: Range): Range[];
by (range: string, hollaback: (current: Moment) => void, exclusive = false);
by (range: Range, hollaback: (current: Moment) => void, exclusive = false);
by (range: string, hollaback: (current: Moment) => void, exclusive?: boolean): void;
by (range: Range, hollaback: (current: Moment) => void, exclusive?: boolean): void;
isSame (other: Range): boolean;