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,
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();