effx
API reference@effx/compilerlift

template

API reference for @effx/compiler/lift/template

template.ts overview


Exports Grouped by Category


utils

TemplateArgs (type alias)

The literal arguments of one builder call, by the argument names its rule declares.

Signature

type TemplateArgs = ReadonlyMap<string, Schema.Json>

evaluate

Evaluates expr over args; item is the element a surrounding Map binds for Item.

Signature

declare const evaluate: (
  expr: TemplateExpr,
  args: TemplateArgs,
  item?: Schema.Json
) => Result.Result<Schema.Json, string>

On this page