Function: asProcessable()
asProcessable<
I,O>(value,name?):Processable<I,O>
Defined in: packages/core/src/processable.ts:45
A Processable for a slot that accepts a Processable or a plain function.
A function becomes a step() called name; anything else is refused.
Type Parameters
I
I
O
O
Parameters
value
Processable<I, O> | ((input, options?) => O | Promise<O>)
name?
string = 'step'
Returns
Processable<I, O>