Context
Defined in: src/context.ts:50
Parse context with schema data and the parser’s scope.
Example
Section titled “Example”type Ctx = Context<{ x: "number"; y: "string" }>;// x resolves to type "number", y resolves to type "string"Type Parameters
Section titled “Type Parameters”TData extends SchemaShape = SchemaShape
Schema mapping variable names to their types
TScope
Section titled “TScope”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
Properties
Section titled “Properties”
readonlydata:TData
Defined in: src/context.ts:55
Schema types for identifier resolution
readonlyscope:TScope
Defined in: src/context.ts:57
Inferred scope aliases for def resolution