use instruction type union array

This commit is contained in:
waltem01 2024-03-15 08:15:40 +01:00
parent c2209dfb6b
commit b80596a181

View File

@ -4,7 +4,8 @@
redirectAPI, redirectAPI,
type LineInstruction, type LineInstruction,
type CircleInstruction, type CircleInstruction,
type UpdateInstruction type UpdateInstruction,
type Instruction
} from '$lib/client/httpRequests'; } from '$lib/client/httpRequests';
import { onMount } from 'svelte'; import { onMount } from 'svelte';
@ -154,7 +155,7 @@
{ {
endpoint: 'update' endpoint: 'update'
} as UpdateInstruction } as UpdateInstruction
]; ] as Instruction[];
// Create a new FormData object to send instructions to the server // Create a new FormData object to send instructions to the server
const fdata = new FormData(); const fdata = new FormData();