fix: why the HELL is our code able to compile **with errors??**

This commit is contained in:
zkldi
2023-08-14 21:42:41 +01:00
parent bb48558484
commit 3379a5b72e
4 changed files with 30 additions and 4 deletions
@@ -8,7 +8,7 @@ import { TachiConfig } from "lib/config";
import { PrudenceSchema, p } from "prudence";
import React, { useEffect, useMemo, useState } from "react";
import { Alert, Button, Col, Form, Modal, Row } from "react-bootstrap";
import { FormatPrError, GetGameConfig } from "tachi-common";
import { FormatPrError, GetGameConfig, GetGamePTConfig, GetScoreMetrics } from "tachi-common";
import { PR_GOAL_SCHEMA } from "tachi-common/lib/schemas";
import { SetState } from "types/react";
import { RawQuestDocument } from "types/tachi";
@@ -38,8 +38,33 @@ const PR_LOCAL_QUESTS_SCHEMA: PrudenceSchema = {
{
goal: {
name: "string",
charts: PR_GOAL_SCHEMA.charts,
criteria: PR_GOAL_SCHEMA.criteria,
charts: p.or(
{
type: p.is("folder"),
data: "string",
},
{
type: p.is("multi"),
data: ["string"],
},
{
type: p.is("single"),
data: "string",
}
),
criteria: p.or(
{
mode: p.is("single"),
key: "string", // temp
value: "number",
},
{
mode: p.isIn("absolute", "proportion"),
countNum: p.isPositive,
key: "string", // temp
value: "number",
}
),
},
note: p.optional("string"),
},
@@ -26,6 +26,7 @@ const GPT_UTILS: Record<GPTString, Array<GPTUtility>> = {
"usc:Keyboard": [],
"wacca:Single": [],
"maimaidx:Single": [],
"maimai:Single": [],
};
export function GetGPTUtils(game: Game, playtype: Playtype) {
-1
View File
@@ -1,4 +1,3 @@
import { getUserActions } from "app/actions/user";
import React, { createContext, useState } from "react";
import { UserDocument } from "tachi-common";
import { JustChildren, SetState } from "types/react";
+1
View File
@@ -7,6 +7,7 @@ const scales: Record<Game, number> = {
chunithm: 5,
gitadora: 1,
maimaidx: 1,
maimai: 1,
museca: 5,
sdvx: 5,
usc: 5,