variableRef
Call Signature
Section titled “Call Signature”variableRef(
name):VariableRefSpec
Defined in: extract/spec.ts:1141
Reference a bound variable from a ForEachSpec scope.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Example
Section titled “Example”variableRef('name') // the bound value itselfvariableRef('item', ['address', 'city']) // navigate into bound value (positional)variableRef('item', ['age'], 'number') // navigate + type check (positional)variableRef('item', { path: ['age'], extract: 'number' }) // options object formvariableRef('x', { extract: 'string' }) // options without pathCall Signature
Section titled “Call Signature”variableRef(
name,options):VariableRefSpec
Defined in: extract/spec.ts:1142
Reference a bound variable from a ForEachSpec scope.
Parameters
Section titled “Parameters”string
options
Section titled “options”Returns
Section titled “Returns”Example
Section titled “Example”variableRef('name') // the bound value itselfvariableRef('item', ['address', 'city']) // navigate into bound value (positional)variableRef('item', ['age'], 'number') // navigate + type check (positional)variableRef('item', { path: ['age'], extract: 'number' }) // options object formvariableRef('x', { extract: 'string' }) // options without pathCall Signature
Section titled “Call Signature”variableRef(
name,path,extract?):VariableRefSpec
Defined in: extract/spec.ts:1146
Reference a bound variable from a ForEachSpec scope.
Parameters
Section titled “Parameters”string
readonly (string | number)[]
extract?
Section titled “extract?”string
Returns
Section titled “Returns”Example
Section titled “Example”variableRef('name') // the bound value itselfvariableRef('item', ['address', 'city']) // navigate into bound value (positional)variableRef('item', ['age'], 'number') // navigate + type check (positional)variableRef('item', { path: ['age'], extract: 'number' }) // options object formvariableRef('x', { extract: 'string' }) // options without path