feat(spec-api): typed surface for spec authors

Thin wrappers over a globalThis.__uatu__ runtime that the verifier
provides as host bindings. Spec authors get IntelliSense for
extract/always/Tap/InputText/actions/weighted/taps/swipes, but the
bundle stays small because runtime logic lives in goja.
This commit is contained in:
pj committed 2026-04-17 23:45:36 +07:00
1 parent 5988e93057
commit 4a1f8cb522
5 files changed
+116

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
import type { Extracted, State } from "./types.ts";
export function extract<T>(getter: (state: State) => T): Extracted<T> {
return globalThis.__uatu__.extract(getter);
}