Beignet API reference
Preparing search index...
@beignet/core
tasks
Tasks
Interface Tasks<Ctx>
Context-bound operational task helper factory.
interface
Tasks
<
Ctx
>
{
defineTask
<
Name
extends
string
,
Input
extends
StandardSchema
,
Output
=
unknown
,
>
(
name
:
Name
,
options
:
DefineTaskOptions
<
Name
,
Input
,
Ctx
,
Output
>
,
)
:
TaskDef
<
Name
,
Input
,
Ctx
,
Output
>
;
}
Type Parameters
Ctx
Index
Methods
define
Task
Methods
define
Task
defineTask
<
Name
extends
string
,
Input
extends
StandardSchema
,
Output
=
unknown
>
(
name
:
Name
,
options
:
DefineTaskOptions
<
Name
,
Input
,
Ctx
,
Output
>
,
)
:
TaskDef
<
Name
,
Input
,
Ctx
,
Output
>
Define a task with the bound context type.
Type Parameters
Name
extends
string
Input
extends
StandardSchema
Output
=
unknown
Parameters
name
:
Name
options
:
DefineTaskOptions
<
Name
,
Input
,
Ctx
,
Output
>
Returns
TaskDef
<
Name
,
Input
,
Ctx
,
Output
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
define
Task
Beignet API reference
Loading...
Context-bound operational task helper factory.