@nuxtjs/sanity
Version:
Sanity integration for Nuxt
9 lines (8 loc) • 415 B
TypeScript
import type { ClientPerspective } from '@sanity/client';
export type PreviewPerspective = 'checking' | 'unknown' | ClientPerspective;
/**
* Used for detecting the perspective in both visual editing and live modes,
* will return null if visual editing is not enabled.
* @public
*/
export declare const useSanityPreviewPerspective: () => import("vue").WritableComputedRef<PreviewPerspective, PreviewPerspective>;