Files
psu-schedule/shared/updates.d.ts
2026-10-16 22:08:45 +03:00

23 lines
634 B
TypeScript

interface CatalogFileLike {
id: string;
name: string;
faculty: string;
modified: string;
}
interface SavedLike {
schemaVersion?: number;
source: {
fileId?: string;
modified?: string;
importedAt: string;
faculty?: string;
};
}
export function namesGroup(fileName: string, group: string): boolean;
export function scheduleUpdate<F extends CatalogFileLike>(
saved: SavedLike | null | undefined,
catalog: { files: F[]; stale?: boolean } | null | undefined,
group: string,
options?: { dismissed?: string[]; schemaVersion?: number },
): { changed: F | null; newer: F | null; missing: boolean } | null;