Skip to content

Commit

Permalink
TS definition: allow Date and Moment for date props (#300, #301)
Browse files Browse the repository at this point in the history
  • Loading branch information
chungweileong94 authored Jun 8, 2021
1 parent 35b3e4c commit 5ade499
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,17 @@ interface CalendarStripProps {
scrollable?: boolean;
scrollerPaging?: boolean;
externalScrollView?: ComponentProps<typeof RecyclerListView>['externalScrollView'];
startingDate?: Moment;
selectedDate?: Moment;
startingDate?: Moment | Date;
selectedDate?: Moment | Date;
onDateSelected?: ((date: Moment) => void);
onWeekChanged?: ((start: Moment, end: Moment) => void);
onWeekScrollStart?: ((start: Moment, end: Moment) => void);
onWeekScrollEnd?: ((start: Moment, end: Moment) => void);
onHeaderSelected?: ((dates: {weekStartDate: Moment, weekEndDate: Moment}) => void);
updateWeek?: boolean;
useIsoWeekday?: boolean;
minDate?: Moment;
maxDate?: Moment;
minDate?: Moment | Date;
maxDate?: Moment | Date;
datesWhitelist?: TDateRange[] | ((date: Moment) => void);
datesBlacklist?: TDateRange[] | ((date: Moment) => void);
markedDates?: any[] | ((date: Moment) => void);
Expand Down

0 comments on commit 5ade499

Please sign in to comment.