payload
Version:
Node, React, Headless CMS and Application Framework built on Next.js
18 lines • 790 B
TypeScript
import type { FindOptions } from '../../index.js';
import type { PayloadRequest, PopulateType, SelectType } from '../../types/index.js';
import type { TypeWithVersion } from '../../versions/types.js';
import type { Collection, TypeWithID } from '../config/types.js';
export type Arguments = {
collection: Collection;
currentDepth?: number;
depth?: number;
disableErrors?: boolean;
id: number | string;
overrideAccess?: boolean;
populate?: PopulateType;
req: PayloadRequest;
showHiddenFields?: boolean;
trash?: boolean;
} & Pick<FindOptions<string, SelectType>, 'select'>;
export declare const findVersionByIDOperation: <TData extends TypeWithID = any>(args: Arguments) => Promise<TypeWithVersion<TData>>;
//# sourceMappingURL=findVersionByID.d.ts.map