Skip to content

Module: 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 WorkContext
data? InputType
Returns

Promise<OutputType | undefined>

Defined in

yajsapi/task/work.ts:9