feat(editor): add transient app state foundation

This commit is contained in:
syntaxbullet
2026-07-03 09:24:08 +02:00
parent 02df52c978
commit 697d12725d
6 changed files with 116 additions and 4 deletions

View File

@@ -1,11 +1,11 @@
import type { ImageDocument } from "@core/document";
import type { AppState } from "@editor/state";
export type CommandContext = {
document: ImageDocument;
state: AppState;
};
export type Command<TPayload = void> = {
id: string;
name: string;
execute(context: CommandContext, payload: TPayload): ImageDocument;
execute(context: CommandContext, payload: TPayload): AppState;
};