Metakit / @doeixd/metakit

Expression

interface · packages/metakit/src/path.ts:22

interface Expr<in Env, out A> extends Pipeable.Pipeable {
  readonly [ExprTypeId]: {
    readonly env: (env: Env) => void
    readonly out: () => A
  }
  readonly node: Node.Node
}

Pure, terminating expression reading paths from Env and producing A. Env is contravariant (phantom) so an expression over { row } widens into { row, principal } without adapters.

Members

Expression.[ExprTypeId]

property · packages/metakit/src/path.ts:23

readonly [ExprTypeId]: {
  readonly env: (env: Env) => void
  readonly out: () => A
}

Expression.node

property · packages/metakit/src/path.ts:27

readonly node: Node.Node