Skip to content

@oona/vlo / index / resultOf

Function: resultOf() ​

resultOf<I, O>(state, target): O

Defined in: sdk/ts/sdk/src/core/helpers/sequence-access.ts:23

The output of an earlier step on target, typed as the activity's output.

Type Parameters ​

I ​

I

O ​

O

Parameters ​

state ​

SeqState

target ​

Activity<I, O>

Returns ​

O

Example ​

ts
step(finish, (state) => ({ uppers: resultOf(state, plan).items, approvedBy: "auto" }))