feat: add core domain model foundations

This commit is contained in:
syntaxbullet
2026-07-02 23:11:14 +02:00
parent 5f767a6688
commit 02df52c978
14 changed files with 133 additions and 1 deletions

11
commands/command.ts Normal file
View File

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

1
commands/index.ts Normal file
View File

@@ -0,0 +1 @@
export type { Command, CommandContext } from "./command";