From 9f7e20b2ff4c3950edd232594a1ea5c510601f6f Mon Sep 17 00:00:00 2001 From: Iskren Chernev Date: Sun, 3 Jul 2016 20:19:55 -0700 Subject: [PATCH] Update typescript definitions with 2.14.0 changes --- moment.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moment.d.ts b/moment.d.ts index 03ac884a8..1134a8552 100644 --- a/moment.d.ts +++ b/moment.d.ts @@ -521,6 +521,9 @@ declare namespace moment { export function normalizeUnits(unit: string): string; export function relativeTimeThreshold(threshold: string): number | boolean; export function relativeTimeThreshold(threshold: string, limit: number): boolean; + export function relativeTimeRounding(fn: (num: number) => number): boolean; + export function relativeTimeRounding(): (num: number) => number; + export function calendarFormat(m: Moment, now: Moment) => string; /** * Constant used to enable explicit ISO_8601 format parsing. -- 2.47.2