Files
leim-tools/models/CalendarEvent.ts
Alexis 67f5a270af Huge refactor for backend and client
This is barely functionnal, but at least it can display some data without crashing
Most other functionnalities other than displaying events are broken, and so are the relative date operations, they need to be fixed asap
2024-05-16 22:58:19 +02:00

19 lines
436 B
TypeScript

import type { Category } from './Category'
import type { RPGDate } from './Date'
export interface CalendarEvent {
id: number
title: string
startDate: RPGDate
endDate?: RPGDate
description?: string
category?: Category
hidden?: boolean
wiki?: string
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function isCalendarEvent(object: any): object is CalendarEvent {
return 'startDate' in object
}