From: Arno Gau Date: Tue, 19 May 2020 10:57:42 +0000 (-0700) Subject: [bugfix] Add 'w' to supported time units (#5526) X-Git-Tag: 2.26.0~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78fa472e740be602609eb5b2ec47e7e61d684258;p=thirdparty%2Fmoment.git [bugfix] Add 'w' to supported time units (#5526) Add 'w' to supported time unit --- diff --git a/moment.d.ts b/moment.d.ts index 89ab02fc7..379a82444 100644 --- a/moment.d.ts +++ b/moment.d.ts @@ -17,7 +17,7 @@ declare function moment(inp?: moment.MomentInput, format?: moment.MomentFormatSp declare function moment(inp?: moment.MomentInput, format?: moment.MomentFormatSpecification, language?: string, strict?: boolean): moment.Moment; declare namespace moment { - type RelativeTimeKey = 's' | 'ss' | 'm' | 'mm' | 'h' | 'hh' | 'd' | 'dd' | 'M' | 'MM' | 'y' | 'yy'; + type RelativeTimeKey = 's' | 'ss' | 'm' | 'mm' | 'h' | 'hh' | 'd' | 'dd' | 'w' | 'M' | 'MM' | 'y' | 'yy'; type CalendarKey = 'sameDay' | 'nextDay' | 'lastDay' | 'nextWeek' | 'lastWeek' | 'sameElse' | string; type LongDateFormatKey = 'LTS' | 'LT' | 'L' | 'LL' | 'LLL' | 'LLLL' | 'lts' | 'lt' | 'l' | 'll' | 'lll' | 'llll'; @@ -104,6 +104,7 @@ declare namespace moment { hh?: RelativeTimeSpecVal; d?: RelativeTimeSpecVal; dd?: RelativeTimeSpecVal; + w?: RelativeTimeSpecVal M?: RelativeTimeSpecVal; MM?: RelativeTimeSpecVal; y?: RelativeTimeSpecVal;