Skip to main content

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 function F
  • callDuringReplay - whether or not fn will be called during Workflow replay - defaults to false

Type parameters

NameType
Fextends SinkFunction

Properties

callDuringReplay

Optional callDuringReplay: boolean

Methods

fn

fn(info, ...args): void | Promise<void>

Parameters

NameType
infoWorkflowInfo
...argsParameters<F>

Returns

void | Promise<void>