UNPKG

@sanity/desk-tool

Version:

Tool for managing all sorts of content in a structured manner

24 lines 699 B
import { VirtualListChangeOpts } from '@sanity/ui'; import { DocumentListPaneItem, SortOrder } from './types'; interface UseDocumentListOpts { filter: string; params: Record<string, unknown>; sortOrder?: SortOrder; apiVersion?: string; } interface DocumentListState { error: { message: string; } | null; fullList: boolean; handleListChange: ({ toIndex }: VirtualListChangeOpts) => void; isLoading: boolean; items: DocumentListPaneItem[] | null; onRetry?: (event: unknown) => void; } /** * @internal */ export declare function useDocumentList(opts: UseDocumentListOpts): DocumentListState; export {}; //# sourceMappingURL=useDocumentList.d.ts.map