]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[bugfix] ts: Add isoWeek option for duration constructor (fix #5007) (#5008)
authorKlemensas <hello@klemensas.net>
Fri, 24 Apr 2020 11:21:34 +0000 (14:21 +0300)
committerGitHub <noreply@github.com>
Fri, 24 Apr 2020 11:21:34 +0000 (14:21 +0300)
moment.d.ts

index 03cfec47edbc3db99445f8b315fc0fae513648f8..2ceec4dfe8dccd988baaa5c9603db28f748291f6 100644 (file)
@@ -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;