UNPKG

@yoot/sanity

Version:

Sanity adapter for @yoot/yoot

18 lines (17 loc) 442 B
import type { Adapter } from '@yoot/yoot'; export { adapter }; export { getDimensionsFromUrl }; /** * Adapter for Sanity image URLs. * * @remarks * Supports `cdn.sanity.io` URLs and maps `yoot` directives to Sanity parameters. * * @public */ declare const adapter: Adapter; /** Extracts intrinsic dimensions from URL filename. */ declare function getDimensionsFromUrl(url: URL): { width: number; height: number; } | undefined;