From 5b0c38ab2bd59980a095c025b11ebb6cc6cbf947 Mon Sep 17 00:00:00 2001 From: ukyo Date: Thu, 28 Jan 2016 14:26:57 +0900 Subject: [PATCH] add moment#isSameOrAfter --- moment/moment-node.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/moment/moment-node.d.ts b/moment/moment-node.d.ts index 1382a1206..830f39ef4 100644 --- a/moment/moment-node.d.ts +++ b/moment/moment-node.d.ts @@ -18,7 +18,7 @@ declare module moment { seconds?: number; milliseconds?: number; } - + interface MomentInput { /** Year */ years?: number; @@ -313,6 +313,7 @@ declare module moment { * @since 2.10.7+ */ isSameOrBefore(b: MomentComparable, granularity?: string): boolean; + isSameOrAfter(b: MomentComparable, granularity?: string): boolean; /** * @deprecated since version 2.8.0 @@ -344,7 +345,7 @@ declare module moment { get(unit: string): number; set(unit: string, value: number): Moment; set(objectLiteral: MomentInput): Moment; - + /** * This returns an object containing year, month, day-of-month, hour, minute, seconds, milliseconds. * @since 2.10.5+