Comment on page

task/work

Table of contents

Type Aliases

Interfaces

Classes

Type Aliases

Worker

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

Type parameters

Name
Type
InputType
unknown
OutputType
unknown

Type declaration

▸ (ctx, data?): Promise<OutputType | undefined>
Parameters
Name
Type
ctx
data?
InputType
Returns
Promise<OutputType | undefined>

Defined in