Skip to main content

@terascope/data-mate / transforms/helpers / VariableState

Class: VariableState

Defined in: data-mate/src/transforms/helpers.ts:166

Constructors​

Constructor​

new VariableState(variables?): VariableState

Defined in: data-mate/src/transforms/helpers.ts:169

Parameters​

ParameterType
variables?Record<string, any>

Returns​

VariableState

Methods​

createVariable()​

createVariable(field, value): string

Defined in: data-mate/src/transforms/helpers.ts:185

Parameters​

ParameterType
fieldstring
valueunknown

Returns​

string


getVariables()​

getVariables(): Record<string, any>

Defined in: data-mate/src/transforms/helpers.ts:201

Shallow clones and sorts the keys

Returns​

Record<string, any>