load
load<
T>(data):DirectInput<T>
Defined in: input.ts:284
Create a DirectInput with inline data.
Type Parameters
Section titled “Type Parameters”T
The type of the data
Parameters
Section titled “Parameters”T
The inline data value
Returns
Section titled “Returns”DirectInput<T>
DirectInput specification
Example
Section titled “Example”// Testing with mock datanew Planner() .in(load({ name: 'test', value: 42 })) .emit((out, $) => out.add('name', $.get('name').string())) .compile()