Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
18 lines
905 B
Plaintext
18 lines
905 B
Plaintext
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 |