@vinejs/vine - v4.2.0
Preparing search index...
src/types
ValidatorBuilder
Interface ValidatorBuilder<MetaData>
interface
ValidatorBuilder
<
MetaData
extends
Record
<
string
,
any
>
>
{
compile
<
Schema
extends
SchemaTypes
>
(
schema
:
Schema
,
)
:
VineValidator
<
Schema
,
MetaData
>
;
create
<
Properties
extends
Record
<
string
,
SchemaTypes
>
,
Schema
extends
VineObject
<
Properties
,
{
[
K
in
string
|
number
|
symbol
]
:
(
{
[
K
in
string
|
number
|
symbol
]
?:
{
[
K
in
string
|
number
|
symbol
]
:
Properties
[
K
]
[
typeof
ITYPE
]
}
[
K
]
}
&
{
[
K
in
string
|
number
|
symbol
]
:
{
[
K
in
string
|
number
|
symbol
]
:
Properties
[
K
]
[
typeof
ITYPE
]
}
[
K
]
}
)
[
K
]
}
,
{
[
K
in
string
|
number
|
symbol
]
:
(
{
[
K
in
string
|
number
|
symbol
]
?:
{
[
K
in
string
|
number
|
symbol
]
:
Properties
[
K
]
[
typeof
OTYPE
]
}
[
K
]
}
&
{
[
K
in
string
|
number
|
symbol
]
:
{
[
K
in
string
|
number
|
symbol
]
:
Properties
[
K
]
[
typeof
OTYPE
]
}
[
K
]
}
)
[
K
]
}
,
{
[
K
in
string
|
number
|
symbol
]
:
(
{
[
K
in
string
|
number
|
symbol
]
?:
{
[
K
in
string
|
number
|
symbol
as
CamelCase
<
K
&
string
>
]
:
Properties
[
K
]
[
typeof
COTYPE
]
}
[
K
]
}
&
{
[
K
in
string
|
number
|
symbol
]
:
{
[
K
in
string
|
number
|
symbol
as
CamelCase
<
K
&
string
>
]
:
Properties
[
K
]
[
typeof
COTYPE
]
}
[
K
]
}
)
[
K
]
}
,
>
,
>
(
properties
:
Properties
,
)
:
VineValidator
<
Schema
,
MetaData
>
;
create
<
Schema
extends
SchemaTypes
>
(
schema
:
Schema
,
)
:
VineValidator
<
Schema
,
MetaData
>
;
}
Type Parameters
MetaData
extends
Record
<
string
,
any
>
Index
Methods
compile
create
Methods
compile
compile
<
Schema
extends
SchemaTypes
>
(
schema
:
Schema
,
)
:
VineValidator
<
Schema
,
MetaData
>
Type Parameters
Schema
extends
SchemaTypes
Parameters
schema
:
Schema
Returns
VineValidator
<
Schema
,
MetaData
>
Deprecated
Instead use "create"
create
create
<
Properties
extends
Record
<
string
,
SchemaTypes
>
,
Schema
extends
VineObject
<
Properties
,
{
[
K
in
string
|
number
|
symbol
]
:
(
{
[
K
in
string
|
number
|
symbol
]
?:
{
[
K
in
string
|
number
|
symbol
]
:
Properties
[
K
]
[
typeof
ITYPE
]
}
[
K
]
}
&
{
[
K
in
string
|
number
|
symbol
]
:
{
[
K
in
string
|
number
|
symbol
]
:
Properties
[
K
]
[
typeof
ITYPE
]
}
[
K
]
}
)
[
K
]
}
,
{
[
K
in
string
|
number
|
symbol
]
:
(
{
[
K
in
string
|
number
|
symbol
]
?:
{
[
K
in
string
|
number
|
symbol
]
:
Properties
[
K
]
[
typeof
OTYPE
]
}
[
K
]
}
&
{
[
K
in
string
|
number
|
symbol
]
:
{
[
K
in
string
|
number
|
symbol
]
:
Properties
[
K
]
[
typeof
OTYPE
]
}
[
K
]
}
)
[
K
]
}
,
{
[
K
in
string
|
number
|
symbol
]
:
(
{
[
K
in
string
|
number
|
symbol
]
?:
{
[
K
in
string
|
number
|
symbol
as
CamelCase
<
K
&
string
>
]
:
Properties
[
K
]
[
typeof
COTYPE
]
}
[
K
]
}
&
{
[
K
in
string
|
number
|
symbol
]
:
{
[
K
in
string
|
number
|
symbol
as
CamelCase
<
K
&
string
>
]
:
Properties
[
K
]
[
typeof
COTYPE
]
}
[
K
]
}
)
[
K
]
}
,
>
,
>
(
properties
:
Properties
,
)
:
VineValidator
<
Schema
,
MetaData
>
Type Parameters
Properties
extends
Record
<
string
,
SchemaTypes
>
Schema
extends
VineObject
<
Properties
,
{
[
K
in
string
|
number
|
symbol
]
:
(
{
[
K
in
string
|
number
|
symbol
]
?:
{
[
K
in
string
|
number
|
symbol
]
:
Properties
[
K
]
[
typeof
ITYPE
]
}
[
K
]
}
&
{
[
K
in
string
|
number
|
symbol
]
:
{
[
K
in
string
|
number
|
symbol
]
:
Properties
[
K
]
[
typeof
ITYPE
]
}
[
K
]
}
)
[
K
]
}
,
{
[
K
in
string
|
number
|
symbol
]
:
(
{
[
K
in
string
|
number
|
symbol
]
?:
{
[
K
in
string
|
number
|
symbol
]
:
Properties
[
K
]
[
typeof
OTYPE
]
}
[
K
]
}
&
{
[
K
in
string
|
number
|
symbol
]
:
{
[
K
in
string
|
number
|
symbol
]
:
Properties
[
K
]
[
typeof
OTYPE
]
}
[
K
]
}
)
[
K
]
}
,
{
[
K
in
string
|
number
|
symbol
]
:
(
{
[
K
in
string
|
number
|
symbol
]
?:
{
[
K
in
string
|
number
|
symbol
as
CamelCase
<
K
&
string
>
]
:
Properties
[
K
]
[
typeof
COTYPE
]
}
[
K
]
}
&
{
[
K
in
string
|
number
|
symbol
]
:
{
[
K
in
string
|
number
|
symbol
as
CamelCase
<
K
&
string
>
]
:
Properties
[
K
]
[
typeof
COTYPE
]
}
[
K
]
}
)
[
K
]
}
,
>
Parameters
properties
:
Properties
Returns
VineValidator
<
Schema
,
MetaData
>
create
<
Schema
extends
SchemaTypes
>
(
schema
:
Schema
,
)
:
VineValidator
<
Schema
,
MetaData
>
Type Parameters
Schema
extends
SchemaTypes
Parameters
schema
:
Schema
Returns
VineValidator
<
Schema
,
MetaData
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Methods
compile
create
@vinejs/vine - v4.2.0
Loading...
Deprecated
Instead use "create"