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
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
import type { DeepPartial } from 'ts-essentials';
|
|
import type { FindOptions } from '../../collections/operations/local/find.js';
|
|
import type { GlobalSlug } from '../../index.js';
|
|
import type { PayloadRequest, PopulateType, SelectType, TransformGlobalWithSelect } from '../../types/index.js';
|
|
import type { DataFromGlobalSlug, SanitizedGlobalConfig, SelectFromGlobalSlug } from '../config/types.js';
|
|
type Args<TSlug extends GlobalSlug> = {
|
|
autosave?: boolean;
|
|
data: DeepPartial<Omit<DataFromGlobalSlug<TSlug>, 'id'>>;
|
|
depth?: number;
|
|
disableTransaction?: boolean;
|
|
draft?: boolean;
|
|
globalConfig: SanitizedGlobalConfig;
|
|
overrideAccess?: boolean;
|
|
overrideLock?: boolean;
|
|
populate?: PopulateType;
|
|
publishAllLocales?: boolean;
|
|
publishSpecificLocale?: string;
|
|
req: PayloadRequest;
|
|
showHiddenFields?: boolean;
|
|
slug: string;
|
|
unpublishAllLocales?: boolean;
|
|
} & Pick<FindOptions<string, SelectType>, 'select'>;
|
|
export declare const updateOperation: <TSlug extends GlobalSlug, TSelect extends SelectFromGlobalSlug<TSlug>>(args: Args<TSlug>) => Promise<TransformGlobalWithSelect<TSlug, TSelect>>;
|
|
export {};
|
|
//# sourceMappingURL=update.d.ts.map |