Libraries v5.0.0
← Back to Website
All Versions
Preparing search index...
@cleverbrush/scheduler
JobHandler
Type Alias JobHandler<D>
JobHandler
:
(
input
:
InferType
<
D
[
"input"
]
>
,
context
:
JobContext
<
InferType
<
D
[
"progress"
]
>
>
,
)
=>
Promise
<
InferType
<
D
[
"output"
]
>
>
|
InferType
<
D
[
"output"
]
>
Strong handler typing without importing execution dependencies into producers.
Type Parameters
D
extends
JobDefinition
<
any
,
any
,
any
>
Type Declaration
(
input
:
InferType
<
D
[
"input"
]
>
,
context
:
JobContext
<
InferType
<
D
[
"progress"
]
>
>
,
)
:
Promise
<
InferType
<
D
[
"output"
]
>
>
|
InferType
<
D
[
"output"
]
>
Parameters
input
:
InferType
<
D
[
"input"
]
>
context
:
JobContext
<
InferType
<
D
[
"progress"
]
>
>
Returns
Promise
<
InferType
<
D
[
"output"
]
>
>
|
InferType
<
D
[
"output"
]
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
← Back to Website
All Versions
Libraries v5.0.0
Loading...
Strong handler typing without importing execution dependencies into producers.