@sanity/desk-tool
Version:
Tool for managing all sorts of content in a structured manner
13 lines • 766 B
TypeScript
import { SanityDocument, SchemaType } from '@sanity/types';
import { Observable } from 'rxjs';
import { PreviewValue } from '../../types';
import { PaneItemPreviewState } from './types';
export declare const isLiveEditEnabled: (schemaType: any) => boolean;
export declare const getMissingDocumentFallback: (item: SanityDocument) => PreviewValue;
export declare const getValueWithFallback: ({ value, draft, published, }: {
value: SanityDocument;
draft?: SanityDocument | null | undefined;
published?: SanityDocument | null | undefined;
}) => PreviewValue | SanityDocument;
export declare function getPreviewStateObservable(schemaType: SchemaType, documentId: string, title: unknown): Observable<PaneItemPreviewState>;
//# sourceMappingURL=helpers.d.ts.map