UNPKG

payload

Version:

Node, React, Headless CMS and Application Framework built on Next.js

27 lines 1.07 kB
import type { SanitizedCollectionConfig } from '../../collections/config/types.js'; import type { FlattenedField } from '../../fields/config/types.js'; import type { SanitizedGlobalConfig } from '../../globals/config/types.js'; import type { PayloadRequest } from '../../types/index.js'; import type { EntityPolicies } from './types.js'; type Args = { collectionConfig?: SanitizedCollectionConfig; errors: { path: string; }[]; fields: FlattenedField[]; globalConfig?: SanitizedGlobalConfig; operator: string; overrideAccess: boolean; parentIsLocalized?: boolean; path: string; policies: EntityPolicies; req: PayloadRequest; val: unknown; versionFields?: FlattenedField[]; }; /** * Validate the Payload key / value / operator */ export declare function validateSearchParam({ collectionConfig, errors, fields, globalConfig, operator, overrideAccess, parentIsLocalized, path: incomingPath, policies, req, val, versionFields, }: Args): Promise<void>; export {}; //# sourceMappingURL=validateSearchParams.d.ts.map