Skip to content

Commit

Permalink
[misc] Fix type of WeekSpec (moment#4634)
Browse files Browse the repository at this point in the history
* Fix "the the" typo in test (moment#4578)

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

* Fix type of WeekSpec

You can set `dow` without setting `doy`, so the type should reflect that
  • Loading branch information
gillyb authored and marwahaha committed Jan 22, 2019
1 parent d14956e commit 0aae724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ declare namespace moment {

interface WeekSpec {
dow: number;
doy: number;
doy?: number;
}

type CalendarSpecVal = string | ((m?: MomentInput, now?: Moment) => string);
Expand Down

0 comments on commit 0aae724

Please sign in to comment.