From 0aae7249928ae0dacad94de30d68434cabc03844 Mon Sep 17 00:00:00 2001 From: Gilly Barr Date: Tue, 22 Jan 2019 04:37:26 +0200 Subject: [PATCH] [misc] Fix type of WeekSpec (#4634) * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moment.d.ts b/moment.d.ts index ec72fbc35..03cfec47e 100644 --- a/moment.d.ts +++ b/moment.d.ts @@ -55,7 +55,7 @@ declare namespace moment { interface WeekSpec { dow: number; - doy: number; + doy?: number; } type CalendarSpecVal = string | ((m?: MomentInput, now?: Moment) => string); -- 2.47.3