Files
klz-cables.com/.pnpm-store/v10/files/c3/b4458cb5c1123d70e88fd6900dcd56591613a549a72ef929436b3c761a25342fa3979c715b60d0a9a44274e0f2f8aba41148a60a32bd680f09ad24c1735bd9
Marc Mintel 5397309103
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
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

27 lines
1.2 KiB
Plaintext

import type { SanitizedCollectionConfig } from '../../../collections/config/types.js';
import type { SanitizedGlobalConfig } from '../../../globals/config/types.js';
import type { RequestContext } from '../../../index.js';
import type { JsonObject, Operation, PayloadRequest } from '../../../types/index.js';
export type Args<T extends JsonObject> = {
collection: null | SanitizedCollectionConfig;
context: RequestContext;
data: T;
doc: T;
docWithLocales: JsonObject;
global: null | SanitizedGlobalConfig;
id?: number | string;
operation: Operation;
overrideAccess?: boolean;
req: PayloadRequest;
skipValidation?: boolean;
};
/**
* This function is responsible for the following actions, in order:
* - Run condition
* - Execute field hooks
* - Validate data
* - Transform data for storage
* - Unflatten locales. The input `data` is the normal document for one locale. The output result will become the document with locales.
*/
export declare const beforeChange: <T extends JsonObject>({ id, collection, context, data: incomingData, doc, docWithLocales, global, operation, overrideAccess, req, skipValidation, }: Args<T>) => Promise<T>;
//# sourceMappingURL=index.d.ts.map