Interface: InjectedSinkFunction<F>
worker.InjectedSinkFunction
Takes a SinkFunction and turns it into a type safe specification consisting of the function implementation type and call configuration.
InjectedSinkFunction
consists of these attributes:
fn
- type of the implementation function for sink functionF
callDuringReplay
- whether or notfn
will be called during Workflow replay - defaults tofalse
Type parameters
Name | Type |
---|---|
F | extends SinkFunction |
Properties
callDuringReplay
• Optional
callDuringReplay: boolean
Methods
fn
▸ fn(info
, ...args
): void
| Promise
<void
>
Parameters
Name | Type |
---|---|
info | WorkflowInfo |
...args | Parameters <F > |
Returns
void
| Promise
<void
>