mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-26 03:51:45 +00:00
use instruction type union array
This commit is contained in:
parent
c2209dfb6b
commit
b80596a181
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user