@r1tsu/payload
Version:
18 lines • 695 B
TypeScript
import type { PaginatedDocs } from '../../database/types.js';
import type { PayloadRequestWithData, Where } from '../../types/index.js';
import type { TypeWithVersion } from '../../versions/types.js';
import type { Collection } from '../config/types.js';
export type Arguments = {
collection: Collection;
depth?: number;
limit?: number;
overrideAccess?: boolean;
page?: number;
pagination?: boolean;
req?: PayloadRequestWithData;
showHiddenFields?: boolean;
sort?: string;
where?: Where;
};
export declare const findVersionsOperation: <T extends TypeWithVersion<T>>(args: Arguments) => Promise<PaginatedDocs<T>>;
//# sourceMappingURL=findVersions.d.ts.map