23 lines
658 B
TypeScript
23 lines
658 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; parserVersion?: number } | null | undefined,
|
|
group: string,
|
|
options?: { dismissed?: string[]; schemaVersion?: number },
|
|
): { changed: F | null; newer: F | null; missing: boolean } | null;
|