mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 11:07:10 +00:00
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:
1 parent
5988e93057
commit
4a1f8cb522
5 files changed
+116
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user