Update moment.d.ts

Added isBefore/isAfter methods without parameters. 
According to the documentation it will default to the current time.
see: http://momentjs.com/docs/#/query/is-before/
This commit is contained in:
Dick van den Brink
2013-08-21 21:09:42 +02:00
parent e2c1506d6b
commit 900b296299
+2
View File
@@ -124,6 +124,7 @@ interface Moment {
daysInMonth(): number;
isDST(): boolean;
isBefore(): boolean;
isBefore(b: Moment): boolean;
isBefore(b: string): boolean;
isBefore(b: Number): boolean;
@@ -135,6 +136,7 @@ interface Moment {
isBefore(b: Date, granularity: string): boolean;
isBefore(b: Array, granularity: string): boolean;
isAfter(): boolean;
isAfter(b: Moment): boolean;
isAfter(b: string): boolean;
isAfter(b: Number): boolean;