payload
Version:
Node, React and MongoDB Headless CMS and Application Framework
22 lines • 882 B
TypeScript
import type { GeneratedTypes } from '../../../';
import type { PayloadRequest, RequestContext } from '../../../express/types';
import type { Payload } from '../../../payload';
import type { Document } from '../../../types';
export type Options<T extends keyof GeneratedTypes['collections']> = {
collection: T;
/**
* context, which will then be passed to req.context, which can be read by hooks
*/
context?: RequestContext;
depth?: number;
draft?: boolean;
fallbackLocale?: string;
id: string;
locale?: string;
overrideAccess?: boolean;
req?: PayloadRequest;
showHiddenFields?: boolean;
user?: Document;
};
export default function restoreVersionLocal<T extends keyof GeneratedTypes['collections']>(payload: Payload, options: Options<T>): Promise<GeneratedTypes['collections'][T]>;
//# sourceMappingURL=restoreVersion.d.ts.map