@r1tsu/payload
Version:
20 lines • 730 B
TypeScript
import type { PaginatedDocs } from '../../database/types.js';
import type { PayloadRequestWithData, Where } from '../../types/index.js';
import type { Collection, TypeWithID } from '../config/types.js';
export type Arguments = {
collection: Collection;
currentDepth?: number;
depth?: number;
disableErrors?: boolean;
draft?: boolean;
limit?: number;
overrideAccess?: boolean;
page?: number;
pagination?: boolean;
req?: PayloadRequestWithData;
showHiddenFields?: boolean;
sort?: string;
where?: Where;
};
export declare const findOperation: <T extends TypeWithID & Record<string, unknown>>(incomingArgs: Arguments) => Promise<PaginatedDocs<T>>;
//# sourceMappingURL=find.d.ts.map