@oona/vlo / index / WorkflowDef
Interface: WorkflowDef<S, I>
Defined in: sdk/ts/sdk/src/core/workflow.ts:33
What defineWorkflow takes: how to build the initial state and the handlers.
Type Parameters
S
S
I
I
Properties
on
on:
Handlers<S>
Defined in: sdk/ts/sdk/src/core/workflow.ts:37
The event handlers.
Methods
init()
init(
input):S
Defined in: sdk/ts/sdk/src/core/workflow.ts:35
Builds the initial state from the start input. Called once, just before on.started.
Parameters
input
I
Returns
S