Skip to content

Commit

Permalink
[bugfix] Add 'w' to supported time units (#5526)
Browse files Browse the repository at this point in the history
Add 'w' to supported time unit
  • Loading branch information
tetranoir authored and marwahaha committed May 19, 2020
1 parent d2c3164 commit 78fa472
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion moment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -104,6 +104,7 @@ declare namespace moment {
hh?: RelativeTimeSpecVal;
d?: RelativeTimeSpecVal;
dd?: RelativeTimeSpecVal;
w?: RelativeTimeSpecVal
M?: RelativeTimeSpecVal;
MM?: RelativeTimeSpecVal;
y?: RelativeTimeSpecVal;
Expand Down

0 comments on commit 78fa472

Please sign in to comment.