mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
fixed some breaks
This commit is contained in:
parent
156f4647c9
commit
6a51cc52ef
@ -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);
|
||||
|
||||
8
moment-range/moment-range.d.ts
vendored
8
moment-range/moment-range.d.ts
vendored
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user