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
Name | Type |
---|---|
InputType | unknown |
OutputType | unknown |
Type declaration
▸ (ctx
, data?
): Promise
<OutputType
>
Parameters
Name | Type |
---|---|
ctx | WorkContext |
data? | InputType |
Returns
Promise
<OutputType
>