Sanity Library Reference Docs
Preparing search index...
@sanity/blueprints
validateRole
Function validateRole
validateRole
(
resource
:
unknown
)
:
BlueprintError
[]
Validates that the given resource is a valid Role.
Parameters
resource
:
unknown
The Role resource
Returns
BlueprintError
[]
A list of validation errors
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Sanity Library Reference Docs
Loading...
Validates that the given resource is a valid Role.