From fac0ab9e379ddb97e9de5097645babe0e96bbd22 Mon Sep 17 00:00:00 2001 From: ghybs Date: Thu, 27 Apr 2017 01:55:47 +0400 Subject: [PATCH] Fix(moment-duration-format): trim "right" (#15970) is a valid value for `DurationFormatSettings.trim` option. See https://github.com/jsmreese/moment-duration-format#trim, `trim` can be a `boolean` or the `"right"` string value. --- 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 41b36bc34d..76eb839cbd 100644 --- a/types/moment-duration-format/index.d.ts +++ b/types/moment-duration-format/index.d.ts @@ -15,7 +15,7 @@ declare module "moment" { interface DurationFormatSettings { template?: string; precision?: number; - trim?: boolean; + trim?: boolean | "right"; forceLength?: boolean; } }