Class ActionFiller

Fills out the fields in an Action

Example

const fooField = new Field();
fooField.name = 'bar';

const bazField = new Field();
bazField.name = 'baz';

const action = new Action();
action.fields = [fooField, bazField];

const filler = new ActionFiller({ foo: 'bar', baz: 42 });
action.accept(filler);

fooField.value; //=> 'bar'
bazField.value; //=> 42

Hierarchy

Constructors

Properties

values: Record<string, unknown>

Methods

Generated using TypeDoc