Added more options to events

This commit is contained in:
Alexis
2024-04-08 09:49:36 +02:00
parent b3129c7c72
commit 802a3707ca
4 changed files with 41 additions and 17 deletions

View File

@@ -5,6 +5,8 @@ export interface CalendarEvent {
date: LeimDate
description?: string
category?: CalendarEventCategory
secondaryCategories?: CalendarEventCategory[]
wiki?: string
}
export type CalendarEventCategory =
@@ -15,6 +17,7 @@ export type CalendarEventCategory =
| 'natural-disaster'
| 'inauguration'
| 'religious'
| 'boon'
| 'player'
export function isCalendarEvent(object: any): object is CalendarEvent {