From 2d2b879b609a4a08fa86bf09c724a7ad8fac2b72 Mon Sep 17 00:00:00 2001 From: zkldi Date: Wed, 21 Apr 2021 19:54:46 +0100 Subject: [PATCH] a hell of a lot of nullery --- common/src/types.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;