Skip to content

Commit a506493

Browse files
authored
🤖 Merge PR DefinitelyTyped#74259 Support @event-calendar/core (event-calendar__core) version 5.0 by @syncsynchalt
1 parent c4bea37 commit a506493

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

‎types/event-calendar__core/event-calendar__core-tests.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ cal = createCalendar(target, plugins, {
124124
allDayContent: "content",
125125
allDaySlot: true,
126126
buttonText: { foo: "bar" },
127+
columnWidth: "20px",
127128
customButtons: {
128129
foo: {
129130
text: "Foo",
@@ -263,6 +264,7 @@ cal.setOption("buttonText", () => {
263264
customButtons.bar = { text: "Bar", active: false, click: () => undefined };
264265
return customButtons;
265266
})
267+
.setOption("columnWidth", undefined)
266268
.setOption("dayCellFormat", (_d: Date) => "content")
267269
.setOption("dayHeaderAriaLabelFormat", (_d: Date) => "content")
268270
.setOption("dayHeaderFormat", (_d: Date) => "content")

‎types/event-calendar__core/index.d.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ export namespace Calendar {
301301
events: EventSourceFunc | EventSourceFuncPromise;
302302
};
303303

304+
type cssLength = string;
304305
type dayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;
305306
type isoDateString = string;
306307
type isoDateTimeString = string;
@@ -309,6 +310,7 @@ export namespace Calendar {
309310
allDayContent?: Content;
310311
allDaySlot?: boolean;
311312
buttonText?: ButtonTextMapping | ((text: ButtonTextMapping) => ButtonTextMapping);
313+
columnWidth?: cssLength;
312314
customButtons?: CustomButtons | ((customButtons: CustomButtons) => CustomButtons);
313315
date?: Date | string | undefined;
314316
dateClick?: (info: DateClickInfo) => void;

‎types/event-calendar__core/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"type": "module",
44
"name": "@types/event-calendar__core",
5-
"version": "4.7.9999",
5+
"version": "5.0.9999",
66
"projects": [
77
"https://vkurko.github.io/calendar/"
88
],

0 commit comments

Comments
 (0)