UNPKG

@sanity/desk-tool

Version:

Tool for managing all sorts of content in a structured manner

10 lines 875 B
import { ObjectField, ObjectFieldType, ObjectSchemaType, SanityDocument } from '@sanity/types'; import { DocumentListPaneItem, SortOrder, SortOrderBy } from './types'; export declare function getDocumentKey(value: DocumentListPaneItem, index: number): string; export declare function removePublishedWithDrafts(documents: SanityDocument[]): DocumentListPaneItem[]; export declare function getTypeNameFromSingleTypeFilter(filter: string, params?: Record<string, unknown>): string | null; export declare function isSimpleTypeFilter(filter: string): boolean; export declare function toOrderClause(orderBy: SortOrderBy[]): string; export declare function applyOrderingFunctions(order: SortOrder, schemaType: ObjectSchemaType): SortOrder; export declare function fieldExtendsType(field: ObjectField | ObjectFieldType, ofType: string): boolean; //# sourceMappingURL=helpers.d.ts.map