From fb72330b03e8d4569fdae5a36190d7596327292c Mon Sep 17 00:00:00 2001 From: Niklas Walter Date: Mon, 10 Apr 2017 09:54:08 +0200 Subject: [PATCH] Correct type for precision parameter --- types/moment-duration-format/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/moment-duration-format/index.d.ts b/types/moment-duration-format/index.d.ts index a3ce7bb300..34179e6dc4 100644 --- a/types/moment-duration-format/index.d.ts +++ b/types/moment-duration-format/index.d.ts @@ -7,7 +7,7 @@ import * as moment from "moment"; declare module "moment" { interface Duration { - format(template: string, precision?: string, settings?: DurationFormatSettings): string; + format(template: string, precision?: number, settings?: DurationFormatSettings): string; } interface DurationFormatSettings {