dd-timer/src/domain/ports/StateRepository.ts
POL Mickaël 3e485fd09b chore: normalise fins de ligne CRLF → LF dans tout le repo
Applique .gitattributes sur tous les fichiers existants.
Élimine les différences fantômes entre WSL et Windows.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 08:55:10 +02:00

21 lines
548 B
TypeScript
Executable File

import type { Enclos } from '@domain/entities/Enclos';
import type { Accouplement } from '@domain/entities/Accouplement';
export interface AppState {
enclos: Enclos[];
activeId: number | string | null;
nextEnclosId: number;
alarmSound: string;
notifsEnabled: boolean;
ntfyTopic: string;
archivedStats: unknown[];
inventaire: Record<string, { m: number; f: number }>;
workflows: unknown[];
accouplements: Accouplement[];
}
export interface StateRepository {
load(): Promise<AppState | null>;
save(state: AppState): void;
}