From 16eec0309ae84c4068c1d7cb7c3a77dff0adc364 Mon Sep 17 00:00:00 2001 From: Johannes Ewald Date: Mon, 29 Mar 2021 19:15:44 +0200 Subject: [PATCH] Add react-big-calendar backgroundEvents They're still missing in the official docs, but already annotated as prop type: https://github.com/jquense/react-big-calendar/blob/dbcc5785a0d2edd2c710706538389344dba737a8/src/Calendar.js#L136 See also https://github.com/jquense/react-big-calendar/pull/1851 --- types/react-big-calendar/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/react-big-calendar/index.d.ts b/types/react-big-calendar/index.d.ts index c6b9548165d2ad..14615da77d185e 100644 --- a/types/react-big-calendar/index.d.ts +++ b/types/react-big-calendar/index.d.ts @@ -293,6 +293,7 @@ export interface CalendarProps Date; view?: View; events?: TEvent[]; + backgroundEvents?: TEvent[]; handleDragStart?: (event: TEvent) => void; onNavigate?: (newDate: Date, view: View, action: NavigateAction) => void; onView?: (view: View) => void; @@ -399,6 +400,7 @@ export function move(View: ViewStatic | ViewKey, options: MoveOptions): Date; export interface TimeGridProps { eventOffset: number; events?: TEvent[]; + backgroundEvents?: TEvent[]; resources?: TResource[]; step?: number; timeslots?: number;