diff --git a/pkgs/clan-app/ui/src/hooks/api.ts b/pkgs/clan-app/ui/src/hooks/api.ts index f5341c15d..7a1e7b0b5 100644 --- a/pkgs/clan-app/ui/src/hooks/api.ts +++ b/pkgs/clan-app/ui/src/hooks/api.ts @@ -72,7 +72,7 @@ export const callApi = ( const op_key = backendOpts?.op_key ?? crypto.randomUUID(); - const req: BackendSendType = { + const req: BackendSendType = { body: args, header: { ...backendOpts, @@ -83,11 +83,9 @@ export const callApi = ( const result = ( window as unknown as Record< OperationNames, - ( - args: BackendSendType, - ) => Promise> + (args: BackendSendType) => Promise> > - )[method](req) as Promise>; + )[method](req); return { uuid: op_key, diff --git a/pkgs/clan-app/ui/src/workflows/Install/steps/installSteps.tsx b/pkgs/clan-app/ui/src/workflows/Install/steps/installSteps.tsx index f68e13420..961f1720a 100644 --- a/pkgs/clan-app/ui/src/workflows/Install/steps/installSteps.tsx +++ b/pkgs/clan-app/ui/src/workflows/Install/steps/installSteps.tsx @@ -2,6 +2,7 @@ import { Typography } from "@/src/components/Typography/Typography"; import { BackButton, NextButton, StepLayout } from "../../Steps"; import { createForm, + FieldValues, getError, SubmitHandler, valiForm, @@ -12,7 +13,7 @@ import { getStepStore, useStepper } from "@/src/hooks/stepper"; import { InstallSteps, InstallStoreType, PromptValues } from "../install"; import { TextInput } from "@/src/components/Form/TextInput"; import { Alert } from "@/src/components/Alert/Alert"; -import { For, onMount, Show } from "solid-js"; +import { For, Show } from "solid-js"; import { Divider } from "@/src/components/Divider/Divider"; import { Orienter } from "@/src/components/Form/Orienter"; import { Button } from "@/src/components/Button/Button"; @@ -302,19 +303,19 @@ const ConfigureData = () => { ); }; -type PromptGroup = { +interface PromptGroup { name: string; fields: { prompt: Prompt; generator: string; value?: string | null; }[]; -}; +} type Prompt = NonNullable[number]; -type PromptForm = { +interface PromptForm extends FieldValues { promptValues: PromptValues; -}; +} interface PromptsFieldsProps { generators: MachineGenerators;