From 900b29629919b083ab508f60adf6a0f47721e77d Mon Sep 17 00:00:00 2001 From: Dick van den Brink Date: Wed, 21 Aug 2013 21:09:42 +0200 Subject: [PATCH] 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/ --- moment/moment.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moment/moment.d.ts b/moment/moment.d.ts index f2b5add84..523f5f6ea 100644 --- a/moment/moment.d.ts +++ b/moment/moment.d.ts @@ -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;