jwf-year-calendar
Version:
A full react version of Paul-DS' js-year-calendar, https://github.com/year-calendar/js-year-calendar. Built with support from JWF Process Solutions Ltd.
29 lines (22 loc) • 598 B
text/typescript
export type CalendarDate = { day: number; month: number; year: number };
export type DataSourceItem = {
id: string;
color?: string;
endDate: CalendarDate;
name: string;
startDate: CalendarDate;
};
export type ContextMenuItem = {
text: string;
onClick: (e: DataSourceItem) => unknown;
};
export type SanitizedDataSourceItem = {
id: string;
color: string;
endDate: CalendarDate;
name: string;
startDate: CalendarDate;
};
export type DataSource = DataSourceItem[];
export type ContextMenu = ContextMenuItem[];
export type SanitizedDataSource = SanitizedDataSourceItem[];