From b80596a1811cf2a6bb579dcdf0fd896e3814a152 Mon Sep 17 00:00:00 2001 From: waltem01 Date: Fri, 15 Mar 2024 08:15:40 +0100 Subject: [PATCH] use instruction type union array --- Webserver/src/routes/clock/+page.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Webserver/src/routes/clock/+page.svelte b/Webserver/src/routes/clock/+page.svelte index 4ec1ff1..c78aa20 100644 --- a/Webserver/src/routes/clock/+page.svelte +++ b/Webserver/src/routes/clock/+page.svelte @@ -4,7 +4,8 @@ redirectAPI, type LineInstruction, type CircleInstruction, - type UpdateInstruction + type UpdateInstruction, + type Instruction } from '$lib/client/httpRequests'; import { onMount } from 'svelte'; @@ -154,7 +155,7 @@ { endpoint: 'update' } as UpdateInstruction - ]; + ] as Instruction[]; // Create a new FormData object to send instructions to the server const fdata = new FormData();