Sanity Library Reference Docs
Preparing search index...
sanity
index
BlockRule
Interface BlockRule
interface
BlockRule
{
custom
:
<
LenientFieldValue
extends
any
[]
>
(
fn
:
CustomValidator
<
LenientFieldValue
>
,
)
=>
BlockRule
;
error
:
(
message
?:
string
|
LocalizedValidationMessages
)
=>
BlockRule
;
info
:
(
message
?:
string
|
LocalizedValidationMessages
)
=>
BlockRule
;
required
:
()
=>
BlockRule
;
valueOfField
:
(
path
:
string
|
string
[]
)
=>
FieldReference
;
warning
:
(
message
?:
string
|
LocalizedValidationMessages
)
=>
BlockRule
;
}
Hierarchy (
View Summary
)
RuleDef
<
BlockRule
,
any
[]
>
BlockRule
Index
Properties
custom
error
info
required
value
Of
Field
warning
Properties
custom
custom
:
<
LenientFieldValue
extends
any
[]
>
(
fn
:
CustomValidator
<
LenientFieldValue
>
,
)
=>
BlockRule
error
error
:
(
message
?:
string
|
LocalizedValidationMessages
)
=>
BlockRule
info
info
:
(
message
?:
string
|
LocalizedValidationMessages
)
=>
BlockRule
required
required
:
()
=>
BlockRule
value
Of
Field
valueOfField
:
(
path
:
string
|
string
[]
)
=>
FieldReference
warning
warning
:
(
message
?:
string
|
LocalizedValidationMessages
)
=>
BlockRule
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...