From: Iskren Chernev Date: Mon, 4 Jul 2016 03:19:55 +0000 (-0700) Subject: Update typescript definitions with 2.14.0 changes X-Git-Tag: 2.14.0~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3275%2Fhead;p=thirdparty%2Fmoment.git Update typescript definitions with 2.14.0 changes --- 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.