Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: fix typing of format callback
  • Loading branch information
stampaaaron committed Jun 15, 2023
commit 69b865cecdae5d44cf233d7c51377bb7db1630d0
2 changes: 1 addition & 1 deletion src/components/Timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type TimelineProps = {
items: TimelineItemsProps;
positioning?: Positioning;
minMarkerGap?: number;
formatDate?: (date: Date) => void;
formatDate?: (date: Date) => string;
customMarker?: ReactElement;
customPointer?: ReactElement;
styleConfig?: StyleConfig;
Expand Down
2 changes: 1 addition & 1 deletion src/components/TimelineItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type TimelineItemProps = PropsWithChildren<{
className?: string;
title?: string;
date: Date | string;
formatDate?: (date: Date) => void;
formatDate?: (date: Date) => string;
customMarker?: ReactElement;
customPointer?: ReactElement;
}>;
Expand Down