Added categories list

This commit is contained in:
Alexis
2024-04-08 19:17:32 +02:00
parent e4587e9304
commit cffdc7653d
8 changed files with 118 additions and 40 deletions

View File

@@ -11,17 +11,17 @@ export interface CalendarEvent {
}
export type CalendarEventCategory =
| 'birth'
| 'death'
| 'naissance'
| 'mort'
| 'catastrophe'
| 'legal'
| 'natural-disaster'
| 'législation'
| 'catastrophe-naturel'
| 'inauguration'
| 'religious'
| 'religion'
| 'invention'
| 'science'
| 'boon' // Great event on a global scale
| 'player'
| 'bénédiction' // Great event on a global scale
| 'joueurs'
export function isCalendarEvent(object: any): object is CalendarEvent {
return 'date' in object