clean up: auto format

This commit is contained in:
waltem01 2024-03-15 08:11:56 +01:00
parent 5c1d584ad1
commit c2209dfb6b

View File

@ -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);