Restate Typescript SDK
Preparing search index...
@restatedev/restate-sdk
implement
Function implement
implement
<
P
extends
string
,
H
extends
Record
<
string
,
HandlerDescriptor
>
>
(
serviceInterface
:
ServiceDescriptor
<
P
,
H
>
,
config
:
{
description
?:
string
;
handlers
:
ServiceImplHandlers
<
H
>
;
metadata
?:
Record
<
string
,
string
>
;
options
?:
ServiceOptions
&
{
handlers
?:
Partial
<
Record
<
keyof
H
,
ServicePerHandlerOpts
>
>
;
}
;
}
,
)
:
ServiceDefinition
<
P
,
ServiceImplHandlers
<
H
>
>
&
ServiceDescriptor
<
P
,
H
>
Type Parameters
P
extends
string
H
extends
Record
<
string
,
HandlerDescriptor
>
Parameters
serviceInterface
:
ServiceDescriptor
<
P
,
H
>
config
:
{
description
?:
string
;
handlers
:
ServiceImplHandlers
<
H
>
;
metadata
?:
Record
<
string
,
string
>
;
options
?:
ServiceOptions
&
{
handlers
?:
Partial
<
Record
<
keyof
H
,
ServicePerHandlerOpts
>
>
;
}
;
}
Returns
ServiceDefinition
<
P
,
ServiceImplHandlers
<
H
>
>
&
ServiceDescriptor
<
P
,
H
>
implement
<
P
extends
string
,
H
extends
Record
<
string
,
HandlerDescriptor
>
>
(
objectInterface
:
ObjectDescriptor
<
P
,
H
>
,
config
:
{
description
?:
string
;
handlers
:
ObjectImplHandlers
<
H
>
;
metadata
?:
Record
<
string
,
string
>
;
options
?:
ServiceOptions
&
{
enableLazyState
?:
boolean
}
&
{
handlers
?:
Partial
<
Record
<
keyof
H
,
ObjectPerHandlerOpts
>
>
;
}
;
}
,
)
:
VirtualObjectDefinition
<
P
,
ObjectImplHandlers
<
H
>
>
&
ObjectDescriptor
<
P
,
H
,
>
Type Parameters
P
extends
string
H
extends
Record
<
string
,
HandlerDescriptor
>
Parameters
objectInterface
:
ObjectDescriptor
<
P
,
H
>
config
:
{
description
?:
string
;
handlers
:
ObjectImplHandlers
<
H
>
;
metadata
?:
Record
<
string
,
string
>
;
options
?:
ServiceOptions
&
{
enableLazyState
?:
boolean
}
&
{
handlers
?:
Partial
<
Record
<
keyof
H
,
ObjectPerHandlerOpts
>
>
;
}
;
}
Returns
VirtualObjectDefinition
<
P
,
ObjectImplHandlers
<
H
>
>
&
ObjectDescriptor
<
P
,
H
>
implement
<
P
extends
string
,
H
extends
Record
<
string
,
HandlerDescriptor
>
>
(
workflowInterface
:
WorkflowDescriptor
<
P
,
H
>
,
config
:
{
description
?:
string
;
handlers
:
WorkflowImplHandlers
<
H
>
;
metadata
?:
Record
<
string
,
string
>
;
options
?:
ServiceOptions
&
{
enableLazyState
?:
boolean
;
workflowRetention
?:
number
|
Duration
;
}
&
{
handlers
?:
Partial
<
Record
<
keyof
H
,
WorkflowPerHandlerOpts
>
>
}
;
}
,
)
:
WorkflowDefinition
<
P
,
WorkflowImplHandlers
<
H
>
>
&
WorkflowDescriptor
<
P
,
H
>
Type Parameters
P
extends
string
H
extends
Record
<
string
,
HandlerDescriptor
>
Parameters
workflowInterface
:
WorkflowDescriptor
<
P
,
H
>
config
:
{
description
?:
string
;
handlers
:
WorkflowImplHandlers
<
H
>
;
metadata
?:
Record
<
string
,
string
>
;
options
?:
ServiceOptions
&
{
enableLazyState
?:
boolean
;
workflowRetention
?:
number
|
Duration
;
}
&
{
handlers
?:
Partial
<
Record
<
keyof
H
,
WorkflowPerHandlerOpts
>
>
}
;
}
Returns
WorkflowDefinition
<
P
,
WorkflowImplHandlers
<
H
>
>
&
WorkflowDescriptor
<
P
,
H
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Restate Typescript SDK
Loading...