Search
Preparing search index...
The search index is not available
@dotvirus/yxc
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@dotvirus/yxc
schema
Module schema
Index
Functions
create
Executable
Schema
create
Schema
is
Functions
create
Executable
Schema
create
Executable
Schema
(
handler
:
Handler
)
:
(
value
:
unknown
)
=>
{
errors
:
IValidationResult
[]
;
ok
:
boolean
}
Parameters
handler:
Handler
Returns
(
value
:
unknown
)
=>
{
errors
:
IValidationResult
[]
;
ok
:
boolean
}
(
value
:
unknown
)
:
{
errors
:
IValidationResult
[]
;
ok
:
boolean
}
Parameters
value:
unknown
Returns
{
errors
:
IValidationResult
[]
;
ok
:
boolean
}
errors
:
IValidationResult
[]
ok
:
boolean
create
Schema
create
Schema
(
def
:
ISchemaDefinition
)
:
(
value
:
unknown
)
=>
{
errors
:
IValidationResult
[]
;
ok
:
boolean
}
Parameters
def:
ISchemaDefinition
Returns
(
value
:
unknown
)
=>
{
errors
:
IValidationResult
[]
;
ok
:
boolean
}
(
value
:
unknown
)
:
{
errors
:
IValidationResult
[]
;
ok
:
boolean
}
Parameters
value:
unknown
Returns
{
errors
:
IValidationResult
[]
;
ok
:
boolean
}
errors
:
IValidationResult
[]
ok
:
boolean
is
is<T>
(
value
:
unknown
, handler
:
T
)
:
value
is
Infer
<
T
>
Type parameters
T
:
Handler
<
any
,
T
>
Parameters
value:
unknown
handler:
T
Returns
value
is
Infer
<
T
>
Exports
email
handlers
handlers/any
handlers/array
handlers/atomic
handlers/base
handlers/boolean
handlers/null
handlers/number
handlers/object
handlers/optional
handlers/record
handlers/string
handlers/union
index
log
schema
types
util
create
Executable
Schema
create
Schema
is
Generated using
TypeDoc