Sanity Library Reference Docs
Preparing search index...
next-sanity
image
SanityImageWithAsset
Type Alias SanityImageWithAsset<T>
SanityImageWithAsset
:
T
extends
{
asset
?:
infer
Asset
}
?
T
&
{
asset
:
NonNullable
<
Asset
>
}
:
never
Narrows image types to the variant where
asset
is present and non-null.
Type Parameters
T
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Sanity Library Reference Docs
Loading...
Narrows image types to the variant where
assetis present and non-null.