Restate Typescript SDK
Preparing search index...
@restatedev/restate-sdk-gen
implement
Function implement
implement
<
P
extends
string
,
H
extends
Record
<
string
,
HandlerDescriptor
>
>
(
iface
:
ServiceDescriptor
<
P
,
H
>
,
config
:
{
handlers
:
iface
.
ImplementHandlers
<
H
>
;
options
?:
ServiceOptions
&
{
handlers
?:
Partial
<
Record
<
keyof
H
,
GenHandlerOpts
>
>
;
}
;
}
,
)
:
ImplementedServiceDefinition
<
P
,
H
>
Type Parameters
P
extends
string
H
extends
Record
<
string
,
HandlerDescriptor
>
Parameters
iface
:
ServiceDescriptor
<
P
,
H
>
config
:
{
handlers
:
iface
.
ImplementHandlers
<
H
>
;
options
?:
ServiceOptions
&
{
handlers
?:
Partial
<
Record
<
keyof
H
,
GenHandlerOpts
>
>
;
}
;
}
Returns
ImplementedServiceDefinition
<
P
,
H
>
implement
<
P
extends
string
,
H
extends
Record
<
string
,
HandlerDescriptor
>
>
(
iface
:
ObjectDescriptor
<
P
,
H
>
,
config
:
{
handlers
:
iface
.
ImplementHandlers
<
H
>
;
options
?:
ServiceOptions
&
{
enableLazyState
?:
boolean
}
&
{
handlers
?:
Partial
<
Record
<
keyof
H
,
GenObjectHandlerOpts
>
>
;
}
;
}
,
)
:
ImplementedObjectDefinition
<
P
,
H
>
Type Parameters
P
extends
string
H
extends
Record
<
string
,
HandlerDescriptor
>
Parameters
iface
:
ObjectDescriptor
<
P
,
H
>
config
:
{
handlers
:
iface
.
ImplementHandlers
<
H
>
;
options
?:
ServiceOptions
&
{
enableLazyState
?:
boolean
}
&
{
handlers
?:
Partial
<
Record
<
keyof
H
,
GenObjectHandlerOpts
>
>
;
}
;
}
Returns
ImplementedObjectDefinition
<
P
,
H
>
implement
<
P
extends
string
,
H
extends
Record
<
string
,
HandlerDescriptor
>
>
(
iface
:
WorkflowDescriptor
<
P
,
H
>
,
config
:
{
handlers
:
iface
.
ImplementHandlers
<
H
>
;
options
?:
ServiceOptions
&
{
enableLazyState
?:
boolean
;
workflowRetention
?:
number
|
Duration
;
}
&
{
handlers
?:
Partial
<
Record
<
keyof
H
,
GenWorkflowHandlerOpts
>
>
}
;
}
,
)
:
ImplementedWorkflowDefinition
<
P
,
H
>
Type Parameters
P
extends
string
H
extends
Record
<
string
,
HandlerDescriptor
>
Parameters
iface
:
WorkflowDescriptor
<
P
,
H
>
config
:
{
handlers
:
iface
.
ImplementHandlers
<
H
>
;
options
?:
ServiceOptions
&
{
enableLazyState
?:
boolean
;
workflowRetention
?:
number
|
Duration
;
}
&
{
handlers
?:
Partial
<
Record
<
keyof
H
,
GenWorkflowHandlerOpts
>
>
}
;
}
Returns
ImplementedWorkflowDefinition
<
P
,
H
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Restate Typescript SDK
Loading...