Files
klz-cables.com/.pnpm-store/v10/files/80/f339690cec9b6103966de5777cefe877a417ddb968edded3fe305a23ec4f51d75425c10a03c7d4a4ed44b6cd6896d9f43e89ac5b3aa0f8f78d89243020443c
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.1 KiB
Plaintext

import type { SanitizedCollectionConfig } from '../../../collections/config/types.js';
import type { SanitizedGlobalConfig } from '../../../globals/config/types.js';
import type { JsonObject, PayloadRequest } from '../../../types/index.js';
import { type RequestContext } from '../../../index.js';
type Args<T extends JsonObject> = {
collection: null | SanitizedCollectionConfig;
context: RequestContext;
data: T;
doc?: T;
duplicate?: boolean;
global: null | SanitizedGlobalConfig;
id?: number | string;
operation: 'create' | 'update';
overrideAccess: boolean;
req: PayloadRequest;
};
/**
* This function is responsible for the following actions, in order:
* - Sanitize incoming data
* - Execute field hooks
* - Execute field access control
* - Merge original document data into incoming data
* - Compute default values for undefined fields
*/
export declare const beforeValidate: <T extends JsonObject>({ id, collection, context, data: incomingData, doc, global, operation, overrideAccess, req, }: Args<T>) => Promise<T>;
export {};
//# sourceMappingURL=index.d.ts.map