UNPKG

payload

Version:

Node, React, Headless CMS and Application Framework built on Next.js

18 lines 787 B
import type { JsonObject, PayloadRequest, PopulateType, SelectType } from '../../types/index.js'; import type { Collection, TypeWithID } from '../config/types.js'; import type { FindOptions } from './local/find.js'; export type Arguments = { collection: Collection; currentDepth?: number; depth?: number; disableErrors?: boolean; disableTransaction?: boolean; draft?: boolean; id: number | string; overrideAccess?: boolean; populate?: PopulateType; req: PayloadRequest; showHiddenFields?: boolean; } & Pick<FindOptions<string, SelectType>, 'select'>; export declare const restoreVersionOperation: <TData extends JsonObject & TypeWithID = JsonObject & TypeWithID>(args: Arguments) => Promise<TData>; //# sourceMappingURL=restoreVersion.d.ts.map