payload
Version:
Node, React, Headless CMS and Application Framework built on Next.js
20 lines • 891 B
TypeScript
import type { FindOptions } from '../../collections/operations/local/find.js';
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 { SanitizedGlobalConfig } from '../config/types.js';
export type Arguments = {
depth?: number;
globalConfig: SanitizedGlobalConfig;
limit?: number;
overrideAccess?: boolean;
page?: number;
pagination?: boolean;
populate?: PopulateType;
req?: PayloadRequest;
showHiddenFields?: boolean;
sort?: Sort;
where?: Where;
} & Pick<FindOptions<string, SelectType>, 'select'>;
export declare const findVersionsOperation: <T extends TypeWithVersion<T>>(args: Arguments) => Promise<PaginatedDocs<T>>;
//# sourceMappingURL=findVersions.d.ts.map