Add base rom file type restrictions

This commit is contained in:
Jared Schoeny
2025-10-18 22:17:04 -10:00
parent 2a007c4be2
commit e47fe2a1d3
3 changed files with 46 additions and 2 deletions

View File

@@ -1,7 +1,15 @@
export const PLATFORMS = [
"GB",
"GBC",
"GBA",
"NDS",
] as const;
export type Platform = typeof PLATFORMS[number];
export type BaseRom = {
id: string;
name: string;
platform: "GB" | "GBC" | "GBA" | "NDS";
platform: Platform;
region: string;
sha1?: string;
};