From c2209dfb6b7d1008098e023950d62cc8c94b5213 Mon Sep 17 00:00:00 2001 From: waltem01 Date: Fri, 15 Mar 2024 08:11:56 +0100 Subject: [PATCH] clean up: auto format --- Webserver/src/lib/client/httpRequests.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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);