Enforce root-owned adapter lifecycles

This commit is contained in:
tmk241
2026-09-01 09:43:38 +02:00
parent 53f0a5db1a
commit 9e12b1eb46
5 changed files with 124 additions and 139 deletions
-7
View File
@@ -42,11 +42,6 @@ export interface EffectBatch {
ops: Effect[];
}
export interface AtomSnapshot {
id: number;
bytes: Uint8Array;
}
export interface HemxRuntime {
readonly runtimeAbiVersion: number;
roots(): Element[];
@@ -54,8 +49,6 @@ export interface HemxRuntime {
applyHtml(html: string, root?: ParentNode | null, title?: string | null): boolean;
applyBatch(buffer: ArrayBuffer, root?: ParentNode | null): void;
decodeBatch(buffer: ArrayBuffer): EffectBatch;
atomValue(root: Element | ParentNode | null | undefined, id: number): Uint8Array | undefined;
decodeAtomState(encoded: string): AtomSnapshot[];
}
declare global {