Skip to content

Commit

Permalink
Allow the meta property to be typed
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Lewis committed May 29, 2017
1 parent 9248263 commit 7821b04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/calendarUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface EventAction {
onClick({event}: {event: CalendarEvent}): any;
}

export interface CalendarEvent {
export interface CalendarEvent<MetaType = any> {
start: Date;
end?: Date;
title: string;
Expand All @@ -59,7 +59,7 @@ export interface CalendarEvent {
afterEnd?: boolean;
};
draggable?: boolean;
meta?: any;
meta?: MetaType;
}

export interface WeekViewEvent {
Expand Down

0 comments on commit 7821b04

Please sign in to comment.