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