]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[misc] Fix type of WeekSpec (#4634)
authorGilly Barr <gillyb@gmail.com>
Tue, 22 Jan 2019 02:37:26 +0000 (04:37 +0200)
committerKunal Marwaha <marwahaha@berkeley.edu>
Tue, 22 Jan 2019 02:37:26 +0000 (18:37 -0800)
* Fix "the the" typo in test (#4578)

* [locale] Fix #4568: Insert punjabi for "next" (#4583)

* Fix type of WeekSpec

You can set `dow` without setting `doy`, so the type should reflect that

moment.d.ts

index ec72fbc3573dd6e48108ae6838815ce27b1c60d3..03cfec47edbc3db99445f8b315fc0fae513648f8 100644 (file)
@@ -55,7 +55,7 @@ declare namespace moment {
 
   interface WeekSpec {
     dow: number;
-    doy: number;
+    doy?: number;
   }
 
   type CalendarSpecVal = string | ((m?: MomentInput, now?: Moment) => string);