Skip to content

VariableRefSpec

Defined in: extract/spec.ts:209

Reference a bound variable from a ForEachSpec scope.

variableRef('name') // just the bound value
variableRef('item', ['address', 'city']) // navigate into bound value
variableRef('item', ['age'], 'number') // navigate + type check

readonly optional extract: string

Defined in: extract/spec.ts:213


readonly kind: "variableRef"

Defined in: extract/spec.ts:210


readonly name: string

Defined in: extract/spec.ts:211


readonly optional path: readonly (string | number)[]

Defined in: extract/spec.ts:212