From 550c7c227af49006d045f9c44159c10040e040aa Mon Sep 17 00:00:00 2001 From: zkldi Date: Wed, 21 Apr 2021 03:22:49 +0100 Subject: [PATCH] more nullables --- common/js/types.d.ts | 6 +++--- common/src/types.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/common/js/types.d.ts b/common/js/types.d.ts index 24cade49a..144f0e580 100644 --- a/common/js/types.d.ts +++ b/common/js/types.d.ts @@ -674,12 +674,12 @@ interface IIDXSPScoreMeta { range: "NONE" | "SUDDEN+" | "HIDDEN+" | "SUD+ HID+" | "LIFT" | "LIFT SUD+"; gauge: "ASSISTED EASY" | "EASY" | "NORMAL" | "HARD" | "EX-HARD"; pacemaker: "NO GRAPH" | "MY BEST" | "RIVAL 1" | "RIVAL 2" | "RIVAL 3" | "RIVAL 4" | "RIVAL 5" | "RIVAL NEXT" | "RIVAL BEST" | "RIVAL AVERAGE" | "NATIONAL BEST" | "NATIONAL AVERAGE" | "PREFECTURE BEST" | "PREFECTURE AVERAGE" | "CLASS BEST" | "CLASS AVERAGE" | "VENUE BEST" | "VENUE NEXT" | "PREVIOUS GHOST" | "PACEMAKER AAA" | "PACEMAKER AA" | "PACEMAKER A" | "PACEMAKER" | /* ??? */ "PACEMAKER NEXT" | "PACEMAKER NEXT+" | "PLAYER 1" | "PLAYER 2"; - pacemakerName: string; - pacemakerTarget: integer; + pacemakerName: string | null; + pacemakerTarget: integer | null; } interface BMS7KScoreMeta { random: RanOptions; - inputDevice: string; + inputDevice: string | null; } interface ScoreMetaLookup { "iidx:SP": IIDXSPScoreMeta; diff --git a/common/src/types.ts b/common/src/types.ts index 3ed2daa10..2e746bdb3 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -903,13 +903,13 @@ interface IIDXSPScoreMeta { | "PACEMAKER NEXT+" | "PLAYER 1" | "PLAYER 2"; - pacemakerName: string; // contains DJ Name - pacemakerTarget: integer; // the EXScore the pacemaker was aimed at + pacemakerName: string | null; // contains DJ Name + pacemakerTarget: integer | null; // the EXScore the pacemaker was aimed at } interface BMS7KScoreMeta { random: RanOptions; - inputDevice: string; + inputDevice: string | null; } interface ScoreMetaLookup {