Skip to content

Commit 04643d1

Browse files
authored
🤖 Merge PR DefinitelyTyped#73018 Update CalendarApp.EventType to include EventType property by @tdesrosi
1 parent 7dbcdcf commit 04643d1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

‎types/google-apps-script/google-apps-script.calendar.d.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ declare namespace GoogleAppsScript {
8080
interface CalendarApp {
8181
Color: typeof Color;
8282
EventColor: typeof EventColor;
83+
EventType: typeof EventType;
8384
GuestStatus: typeof GuestStatus;
8485
Month: typeof Base.Month;
8586
Visibility: typeof Visibility;

‎types/google-apps-script/test/google-apps-script-tests.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ const postTest = (payload: object): string => {
4343
const testCalendarAppEventType = (): void => {
4444
const event = CalendarApp.getEventById("testevent");
4545
const type = event.getEventType();
46+
const birthdayType = CalendarApp.EventType.BIRTHDAY;
47+
birthdayType !== type;
48+
49+
type !== CalendarApp.EventType.FOCUS_TIME;
50+
4651
type == GoogleAppsScript.Calendar.EventType.OUT_OF_OFFICE;
4752
// @ts-expect-error
4853
type == GoogleAppsScript.Calendar.EventType.STANDARD;

0 commit comments

Comments
 (0)