Sanity Library Reference Docs
    Preparing search index...

    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