Restate Typescript SDK
Preparing search index...
@restatedev/restate-sdk-gen
schemas
Function schemas
schemas
<
SI
extends
StandardSchemaV1
<
any
,
any
>
,
SO
extends
StandardSchemaV1
<
any
,
any
>
,
>
(
opts
:
{
input
:
SI
;
output
:
SO
}
,
fn
:
(
input
:
StandardSchemaV1
.
InferOutput
<
SI
>
,
)
=>
Operation
<
StandardSchemaV1
.
InferOutput
<
SO
>
>
,
)
:
HandlerDef
<
StandardSchemaV1
.
InferOutput
<
SI
>
,
StandardSchemaV1
.
InferOutput
<
SO
>
,
>
schemas(opts, fn) — Standard Schema (Zod, TypeBox, Valibot, …) per field
Type Parameters
SI
extends
StandardSchemaV1
<
any
,
any
>
SO
extends
StandardSchemaV1
<
any
,
any
>
Parameters
opts
:
{
input
:
SI
;
output
:
SO
}
fn
:
(
input
:
StandardSchemaV1
.
InferOutput
<
SI
>
,
)
=>
Operation
<
StandardSchemaV1
.
InferOutput
<
SO
>
>
Returns
HandlerDef
<
StandardSchemaV1
.
InferOutput
<
SI
>
,
StandardSchemaV1
.
InferOutput
<
SO
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Restate Typescript SDK
Loading...
schemas(opts, fn) — Standard Schema (Zod, TypeBox, Valibot, …) per field