From 34dabbdd4e64d72c09230353fa8b9868d0735f2d Mon Sep 17 00:00:00 2001 From: Michael Driscoll Date: Wed, 4 Sep 2024 11:12:00 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#70421=20@event-cal?= =?UTF-8?q?endar/core:=20Add=20missing=20EventInput=20field=20"resourceId"?= =?UTF-8?q?=20by=20@syncsynchalt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/event-calendar__core/event-calendar__core-tests.ts | 2 ++ types/event-calendar__core/index.d.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/types/event-calendar__core/event-calendar__core-tests.ts b/types/event-calendar__core/event-calendar__core-tests.ts index dd4ed2349d4ae3..da2a0121010b8f 100644 --- a/types/event-calendar__core/event-calendar__core-tests.ts +++ b/types/event-calendar__core/event-calendar__core-tests.ts @@ -20,6 +20,8 @@ cal.addEvent({ start: new Date(), end: new Date(Date.now() + 60 * 60 * 1000), title: "an event", + resourceId: 123, + resourceIds: ["234"], }); cal.getEventById(234); cal.getEventById("234"); diff --git a/types/event-calendar__core/index.d.ts b/types/event-calendar__core/index.d.ts index ef4d09794686c2..c8a13bdeec5fb0 100644 --- a/types/event-calendar__core/index.d.ts +++ b/types/event-calendar__core/index.d.ts @@ -216,6 +216,7 @@ declare namespace Calendar { startEditable?: boolean; durationEditable?: boolean; resourceIds?: string | number | Array; + resourceId?: string | number | Array; display?: "auto" | "background"; backgroundColor?: string; textColor?: string;