Sanity Library Reference Docs
Preparing search index...
sanity
index
isPortableTextTextBlock
Function isPortableTextTextBlock
isPortableTextTextBlock
<
T
=
PortableTextObject
|
PortableTextSpan
>
(
value
:
unknown
,
)
:
value
is
PortableTextTextBlock
<
T
>
Alpha
Assert that a given object is a portable-text text-block type object
Type Parameters
T
=
PortableTextObject
|
PortableTextSpan
Parameters
value
:
unknown
Returns
value
is
PortableTextTextBlock
<
T
>
Remarks
The
markDefs
and
style
property of a block is optional.
Block types can be named, so expect anything of the _type property.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Sanity Library Reference Docs
Loading...
Assert that a given object is a portable-text text-block type object