export type TaskRecurrence = { id: number '@id'?: string type: 'daily' | 'weekly' | 'monthly' | 'yearly' interval: number daysOfWeek: string[] | null dayOfMonth: number | null weekOfMonth: number | null endDate: string | null maxOccurrences: number | null occurrenceCount: number } export type TaskRecurrenceWrite = { type: 'daily' | 'weekly' | 'monthly' | 'yearly' interval: number daysOfWeek?: string[] | null dayOfMonth?: number | null weekOfMonth?: number | null endDate?: string | null maxOccurrences?: number | null }