Documentation
Preparing search index...
@rivetkit/engine-api-full
core
serialization
SchemaUtils
Interface SchemaUtils<Raw, Parsed>
interface
SchemaUtils
<
Raw
,
Parsed
>
{
jsonOrThrow
:
(
raw
:
unknown
,
opts
?:
SchemaOptions
)
=>
Raw
;
nullable
:
()
=>
Schema
<
Raw
|
null
,
Parsed
|
null
>
;
optional
:
()
=>
Schema
<
Raw
|
null
|
undefined
,
Parsed
|
undefined
>
;
optionalNullable
:
()
=>
Schema
<
Raw
|
null
|
undefined
,
Parsed
|
null
|
undefined
,
>
;
parseOrThrow
:
(
raw
:
unknown
,
opts
?:
SchemaOptions
)
=>
Parsed
;
transform
:
<
Transformed
>
(
transformer
:
SchemaTransformer
<
Parsed
,
Transformed
>
,
)
=>
Schema
<
Raw
,
Transformed
>
;
}
Type Parameters
Raw
Parsed
Index
Properties
json
Or
Throw
nullable
optional
optional
Nullable
parse
Or
Throw
transform
Properties
json
Or
Throw
jsonOrThrow
:
(
raw
:
unknown
,
opts
?:
SchemaOptions
)
=>
Raw
nullable
nullable
:
()
=>
Schema
<
Raw
|
null
,
Parsed
|
null
>
optional
optional
:
()
=>
Schema
<
Raw
|
null
|
undefined
,
Parsed
|
undefined
>
optional
Nullable
optionalNullable
:
()
=>
Schema
<
Raw
|
null
|
undefined
,
Parsed
|
null
|
undefined
,
>
parse
Or
Throw
parseOrThrow
:
(
raw
:
unknown
,
opts
?:
SchemaOptions
)
=>
Parsed
transform
transform
:
<
Transformed
>
(
transformer
:
SchemaTransformer
<
Parsed
,
Transformed
>
,
)
=>
Schema
<
Raw
,
Transformed
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
json
Or
Throw
nullable
optional
optional
Nullable
parse
Or
Throw
transform
Documentation
Loading...