UNPKG

payload

Version:

Node, React, Headless CMS and Application Framework built on Next.js

21 lines 873 B
import type { PaginatedDocs } from '../../database/types.js'; import type { PayloadRequest, PopulateType, SelectType, Sort, Where } from '../../types/index.js'; import type { TypeWithVersion } from '../../versions/types.js'; import type { Collection } from '../config/types.js'; import type { FindOptions } from './local/find.js'; export type Arguments = { collection: Collection; depth?: number; limit?: number; overrideAccess?: boolean; page?: number; pagination?: boolean; populate?: PopulateType; req?: PayloadRequest; showHiddenFields?: boolean; sort?: Sort; trash?: boolean; where?: Where; } & Pick<FindOptions<string, SelectType>, 'select'>; export declare const findVersionsOperation: <TData extends TypeWithVersion<TData>>(args: Arguments) => Promise<PaginatedDocs<TData>>; //# sourceMappingURL=findVersions.d.ts.map