diff --git a/common/src/types.ts b/common/src/types.ts index 858650ac5..caebd5d77 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -862,7 +862,7 @@ export interface UserMilestoneDocument extends MongoDBDocument { type RanOptions = "NONRAN" | "RANDOM" | "R-RANDOM" | "S-RANDOM" | "MIRROR"; interface IIDXSPScoreMeta { - random: RanOptions; + random: RanOptions | null; assist: | "NO ASSIST" | "AUTO SCRATCH" @@ -908,13 +908,13 @@ interface IIDXSPScoreMeta { } interface BMS7KScoreMeta { - random: RanOptions; + random: RanOptions | null; inputDevice: "KEYBOARD" | "BM_CONTROLLER" | "MIDI" | null; } interface ScoreMetaLookup { "iidx:SP": IIDXSPScoreMeta; - "iidx:DP": IIDXSPScoreMeta & { random: [RanOptions, RanOptions] }; + "iidx:DP": IIDXSPScoreMeta & { random: [RanOptions, RanOptions] | null }; "popn:9B": Record; "sdvx:Single": Record; "usc:Single": Record; @@ -924,7 +924,7 @@ interface ScoreMetaLookup { "jubeat:Single": Record; "museca:Single": Record; "bms:7K": BMS7KScoreMeta; - "bms:14K": BMS7KScoreMeta & { random: [RanOptions, RanOptions] }; + "bms:14K": BMS7KScoreMeta & { random: [RanOptions, RanOptions] | null }; "bms:5K": Record; "chunithm:Single": Record; "gitadora:Gita": Record;