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.
This commit is contained in:
ghybs
2017-04-27 01:55:47 +04:00
committed by Sheetal Nandi
parent 2a78cc163a
commit fac0ab9e37

View File

@@ -15,7 +15,7 @@ declare module "moment" {
interface DurationFormatSettings {
template?: string;
precision?: number;
trim?: boolean;
trim?: boolean | "right";
forceLength?: boolean;
}
}