From: Klemensas Date: Fri, 24 Apr 2020 11:21:34 +0000 (+0300) Subject: [bugfix] ts: Add isoWeek option for duration constructor (fix #5007) (#5008) X-Git-Tag: 2.25.0~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c39c646d79bff3db61d804a78231298ac40185e6;p=thirdparty%2Fmoment.git [bugfix] ts: Add isoWeek option for duration constructor (fix #5007) (#5008) --- diff --git a/moment.d.ts b/moment.d.ts index 03cfec47e..2ceec4dfe 100644 --- a/moment.d.ts +++ b/moment.d.ts @@ -298,7 +298,7 @@ declare namespace moment { type _quarter = "quarter" | "quarters" | "Q"; type _isoWeek = "isoWeek" | "isoWeeks" | "W"; type _date = "date" | "dates" | "D"; - type DurationConstructor = Base | _quarter; + type DurationConstructor = Base | _quarter | _isoWeek; type DurationAs = Base;