FlatLibrary provider (#127)

This commit is contained in:
DecDuck
2025-07-06 12:44:41 +10:00
committed by GitHub
parent 73c27f0984
commit 706f2aac83
11 changed files with 233 additions and 75 deletions

View File

@ -1,4 +1,3 @@
import type { Readable } from "stream";
import type { LibraryBackend } from "~/prisma/client";
export abstract class LibraryProvider<CFG> {
@ -57,7 +56,7 @@ export abstract class LibraryProvider<CFG> {
version: string,
filename: string,
options?: { start?: number; end?: number },
): Promise<Readable | undefined>;
): Promise<ReadableStream | undefined>;
}
export class GameNotFoundError extends Error {}