Sanity Library Reference Docs
Preparing search index...
sanity
index
EmailRule
Interface EmailRule
interface
EmailRule
{
custom
:
<
LenientFieldValue
extends
string
>
(
fn
:
CustomValidator
<
LenientFieldValue
>
,
)
=>
EmailRule
;
error
:
(
message
?:
string
|
LocalizedValidationMessages
)
=>
EmailRule
;
info
:
(
message
?:
string
|
LocalizedValidationMessages
)
=>
EmailRule
;
required
:
()
=>
EmailRule
;
valueOfField
:
(
path
:
string
|
string
[]
)
=>
FieldReference
;
warning
:
(
message
?:
string
|
LocalizedValidationMessages
)
=>
EmailRule
;
}
Hierarchy (
View Summary
)
RuleDef
<
EmailRule
,
string
>
EmailRule
Index
Properties
custom
error
info
required
value
Of
Field
warning
Properties
custom
custom
:
<
LenientFieldValue
extends
string
>
(
fn
:
CustomValidator
<
LenientFieldValue
>
,
)
=>
EmailRule
error
error
:
(
message
?:
string
|
LocalizedValidationMessages
)
=>
EmailRule
info
info
:
(
message
?:
string
|
LocalizedValidationMessages
)
=>
EmailRule
required
required
:
()
=>
EmailRule
value
Of
Field
valueOfField
:
(
path
:
string
|
string
[]
)
=>
FieldReference
warning
warning
:
(
message
?:
string
|
LocalizedValidationMessages
)
=>
EmailRule
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
custom
error
info
required
value
Of
Field
warning
Sanity Library Reference Docs
Loading...