diff --git a/Webserver/src/lib/client/httpRequests.ts b/Webserver/src/lib/client/httpRequests.ts index c1c581e..52e107a 100644 --- a/Webserver/src/lib/client/httpRequests.ts +++ b/Webserver/src/lib/client/httpRequests.ts @@ -73,7 +73,17 @@ export interface UpdateInstruction { } // Define a discriminated union for all possible instruction types -export type Instruction = UploadInstruction | ImageInstruction | TextInstruction | PixelInstruction | CircleInstruction | RectangleInstruction | LineInstruction | ColorInstruction | ClearInstruction | UpdateInstruction; +export type Instruction = + | UploadInstruction + | ImageInstruction + | TextInstruction + | PixelInstruction + | CircleInstruction + | RectangleInstruction + | LineInstruction + | ColorInstruction + | ClearInstruction + | UpdateInstruction; export async function redirectAPI({ form, fdata }: { form?: HTMLFormElement; fdata?: FormData }) { if (!fdata && form) fdata = new FormData(form);