Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#71223 event-calendar: Support nested resou…
Browse files Browse the repository at this point in the history
…rces by @syncsynchalt
  • Loading branch information
syncsynchalt authored Nov 22, 2024
1 parent ca297b2 commit 04cf5c4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions types/event-calendar__core/event-calendar__core-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,19 @@ cal.setOption("buttonText", () => {
.setOption("moreLinkContent", (_info: Calendar.MoreLinkInfo) => "content")
.setOption("noEventsContent", () => "content")
.setOption("resourceLabelContent", (_info: Calendar.ResourceLabelInfo) => "content")
.setOption("resources", [{
id: "foo",
children: [
{
id: "bar",
children: [
{
id: "baz",
},
],
},
],
}])
.setOption("slotLabelFormat", (_t: Date) => "content")
.setOption("theme", (theme: Calendar.Theme) => {
let result: Calendar.Theme = {};
Expand Down
1 change: 1 addition & 0 deletions types/event-calendar__core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ declare namespace Calendar {
eventBackgroundColor?: string;
eventTextColor?: string;
extendedProps?: Record<string, unknown>;
children?: ResourceInput[];
}

interface Resource {
Expand Down
2 changes: 1 addition & 1 deletion types/event-calendar__core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"type": "module",
"name": "@types/event-calendar__core",
"version": "3.6.9999",
"version": "3.7.9999",
"projects": [
"https://vkurko.github.io/calendar/"
],
Expand Down

0 comments on commit 04cf5c4

Please sign in to comment.