Restate Typescript SDK
Preparing search index...
@restatedev/restate-sdk-gen
workflow
Function workflow
workflow
<
P
extends
string
,
H
extends
Record
<
string
,
HandlerOrHandlerDescriptor
>
>
(
config
:
{
description
?:
string
;
handlers
:
H
;
metadata
?:
Record
<
string
,
string
>
;
name
:
P
;
options
?:
ServiceOptions
&
{
enableLazyState
?:
boolean
;
workflowRetention
?:
number
|
Duration
;
}
&
{
handlers
?:
Partial
<
Record
<
keyof
H
,
GenWorkflowHandlerOpts
>
>
}
;
}
,
)
:
ImplementedWorkflowDefinition
<
P
,
HandlerDescriptors
<
H
>
>
Type Parameters
P
extends
string
H
extends
Record
<
string
,
HandlerOrHandlerDescriptor
>
Parameters
config
:
{
description
?:
string
;
handlers
:
H
;
metadata
?:
Record
<
string
,
string
>
;
name
:
P
;
options
?:
ServiceOptions
&
{
enableLazyState
?:
boolean
;
workflowRetention
?:
number
|
Duration
;
}
&
{
handlers
?:
Partial
<
Record
<
keyof
H
,
GenWorkflowHandlerOpts
>
>
}
;
}
Returns
ImplementedWorkflowDefinition
<
P
,
HandlerDescriptors
<
H
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Restate Typescript SDK
Loading...