mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-26 03:51:45 +00:00
clean up: auto format
This commit is contained in:
parent
5c1d584ad1
commit
c2209dfb6b
@ -73,7 +73,17 @@ export interface UpdateInstruction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Define a discriminated union for all possible instruction types
|
// 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 }) {
|
export async function redirectAPI({ form, fdata }: { form?: HTMLFormElement; fdata?: FormData }) {
|
||||||
if (!fdata && form) fdata = new FormData(form);
|
if (!fdata && form) fdata = new FormData(form);
|
||||||
|
Loading…
Reference in New Issue
Block a user