reference

Module: task/work

Table of contents

Classes

Interfaces

Type Aliases

Type Aliases

Worker

Ƭ Worker<InputType, OutputType>: (ctx: WorkContext, data?: InputType) => Promise<OutputType>

Type parameters

NameType
InputTypeunknown
OutputTypeunknown

Type declaration

▸ (ctx, data?): Promise<OutputType>

Parameters
NameType
ctxWorkContext
data?InputType
Returns

Promise<OutputType>

Defined in

src/task/work.ts:19