From 4533910bce394e7a0ee6debfc05ca1221ee51899 Mon Sep 17 00:00:00 2001 From: victor Date: Sat, 24 Oct 2026 15:57:01 +0200 Subject: Astra! --- src/core/model.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/core/model.ts (limited to 'src/core/model.ts') diff --git a/src/core/model.ts b/src/core/model.ts new file mode 100644 index 0000000..f250839 --- /dev/null +++ b/src/core/model.ts @@ -0,0 +1,16 @@ +import type { I18n, MessageKey } from '../i18n'; + +export interface ModelContext { + i18n: I18n; +} + +export interface ModelInstance { + /** Release animation frames, GPU resources, observers, and event listeners. */ + dispose(): void; +} + +export interface ModelDefinition { + id: string; + titleKey: MessageKey; + mount(host: HTMLElement, context: ModelContext): ModelInstance | Promise; +} -- cgit v1.2.3