more nullability, sadly

This commit is contained in:
zkldi
2021-05-12 01:21:04 +01:00
parent 4c4eb46534
commit 56d6043c74
5 changed files with 3 additions and 7 deletions
-2
View File
@@ -154,8 +154,6 @@ exports.validHitMeta = {
"lpg",
"epg",
"diedAt",
"random",
"inputDevice",
...exports.BASE_VALID_HIT_META,
],
chunithm: [...exports.BASE_VALID_HIT_META],
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -915,7 +915,7 @@ export interface ScoreDocument<I extends IDStrings = IDStrings> extends MongoDBD
lampIndex: integer;
gradeIndex: integer;
esd: number | null;
hitData: Partial<Record<JudgementLookup[I], integer>>;
hitData: Partial<Record<JudgementLookup[I], integer | null>>;
hitMeta: Partial<HitMetaLookup[I]>;
};
scoreMeta: Partial<ScoreMetaLookup[I]>;
-2
View File
@@ -172,8 +172,6 @@ export const validHitMeta: Record<Game, string[]> = {
"lpg",
"epg",
"diedAt",
"random",
"inputDevice",
...BASE_VALID_HIT_META,
],
chunithm: [...BASE_VALID_HIT_META],
+1 -1
View File
@@ -1167,7 +1167,7 @@ export interface ScoreDocument<I extends IDStrings = IDStrings> extends MongoDBD
lampIndex: integer;
gradeIndex: integer;
esd: number | null;
hitData: Partial<Record<JudgementLookup[I], integer>>;
hitData: Partial<Record<JudgementLookup[I], integer | null>>;
hitMeta: Partial<HitMetaLookup[I]>;
};
scoreMeta: Partial<ScoreMetaLookup[I]>;