From 4e5e52edca5d0d8eb92710cb40fa04b0cfda04d9 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Mon, 8 Jun 2015 16:48:55 -0700 Subject: [PATCH] [moment]: relativeTimeThreshold can be a getter fix signature. --- moment/moment-node.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moment/moment-node.d.ts b/moment/moment-node.d.ts index 13f1b9362e..ba5fe85d16 100644 --- a/moment/moment-node.d.ts +++ b/moment/moment-node.d.ts @@ -465,7 +465,8 @@ declare module moment { max(moments: Moment[]): Moment; normalizeUnits(unit: string): string; - relativeTimeThreshold(threshold: string, limit: number): void; + relativeTimeThreshold(threshold: string): number|boolean; + relativeTimeThreshold(threshold: string, limit:number): boolean; /** * Constant used to enable explicit ISO_8601 format parsing.