From: PatrickMackridge <38439947+PatrickMackridge@users.noreply.github.com> Date: Tue, 15 Sep 2020 21:25:53 +0000 (+0100) Subject: [misc] add 'ww' key to RelativeTimeSpec Interface (#5717) X-Git-Tag: 2.29.0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e02ca9358ce5b269884dd56668b5819b1a38fd2a;p=thirdparty%2Fmoment.git [misc] add 'ww' key to RelativeTimeSpec Interface (#5717) --- diff --git a/moment.d.ts b/moment.d.ts index bd9d87b83..2c5b3cf46 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' | 'w' | 'M' | 'MM' | 'y' | 'yy'; + type RelativeTimeKey = 's' | 'ss' | 'm' | 'mm' | 'h' | 'hh' | 'd' | 'dd' | 'w' | 'ww' | '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'; @@ -105,6 +105,7 @@ declare namespace moment { d?: RelativeTimeSpecVal; dd?: RelativeTimeSpecVal; w?: RelativeTimeSpecVal + ww?: RelativeTimeSpecVal; M?: RelativeTimeSpecVal; MM?: RelativeTimeSpecVal; y?: RelativeTimeSpecVal; diff --git a/ts3.1-typings/moment.d.ts b/ts3.1-typings/moment.d.ts index a04270f66..f383263ee 100644 --- a/ts3.1-typings/moment.d.ts +++ b/ts3.1-typings/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' | 'w' | 'M' | 'MM' | 'y' | 'yy'; + type RelativeTimeKey = 's' | 'ss' | 'm' | 'mm' | 'h' | 'hh' | 'd' | 'dd' | 'w' | 'ww' | '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'; @@ -105,6 +105,7 @@ declare namespace moment { d?: RelativeTimeSpecVal; dd?: RelativeTimeSpecVal; w?: RelativeTimeSpecVal; + ww?: RelativeTimeSpecVal; M?: RelativeTimeSpecVal; MM?: RelativeTimeSpecVal; y?: RelativeTimeSpecVal;