]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Update typescript definitions with 2.14.0 changes 3275/head
authorIskren Chernev <iskren.chernev@gmail.com>
Mon, 4 Jul 2016 03:19:55 +0000 (20:19 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 4 Jul 2016 03:19:55 +0000 (20:19 -0700)
moment.d.ts

index 03ac884a8eeaba91aa93a3684b60a4ca3aaa42a1..1134a85527e5f11127e08efce1904b0c97c5850e 100644 (file)
@@ -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.