Skip to content

Context

Defined in: src/context.ts:50

Parse context with schema data and the parser’s scope.

type Ctx = Context<{ x: "number"; y: "string" }>;
// x resolves to type "number", y resolves to type "string"

TData extends SchemaShape = SchemaShape

Schema mapping variable names to their types

TScope = { }

The parser’s INFERRED scope aliases (createParser(nodes, { scope }) → alias name → inferred type), threaded through the def algebra so schema leaves like { created: "Timestamp" } resolve at compile time

readonly data: TData

Defined in: src/context.ts:55

Schema types for identifier resolution


readonly scope: TScope

Defined in: src/context.ts:57

Inferred scope aliases for def resolution