payload
Version:
Node, React, Headless CMS and Application Framework built on Next.js
18 lines • 905 B
TypeScript
import type { SanitizedCollectionConfig } from '../collections/config/types.js';
import type { SanitizedGlobalConfig } from '../globals/config/types.js';
import type { Payload, TypeWithVersion } from '../index.js';
import type { JsonObject, PayloadRequest, SelectType } from '../types/index.js';
type Args<T extends JsonObject = JsonObject> = {
autosave?: boolean;
collection?: SanitizedCollectionConfig;
data?: T;
global?: SanitizedGlobalConfig;
id?: number | string;
payload: Payload;
publishSpecificLocale?: string;
req?: PayloadRequest;
select?: SelectType;
};
export declare const saveSnapshot: <T extends JsonObject = JsonObject>({ id, autosave, collection, data, global, payload, publishSpecificLocale, req, select, }: Args<T>) => Promise<Omit<TypeWithVersion<T>, "parent"> | TypeWithVersion<T> | undefined>;
export {};
//# sourceMappingURL=saveSnapshot.d.ts.map