UNPKG

@r1tsu/payload

Version:

24 lines 953 B
import type { SanitizedCollectionConfig } from '../../collections/config/types.js'; import type { Field } from '../../fields/config/types.js'; import type { SanitizedGlobalConfig } from '../../globals/config/types.js'; import type { PayloadRequestWithData, Where } from '../../types/index.js'; import type { EntityPolicies } from './types.js'; type Args = { errors?: { path: string; }[]; overrideAccess: boolean; policies?: EntityPolicies; req: PayloadRequestWithData; versionFields?: Field[]; where: Where; } & ({ collectionConfig: SanitizedCollectionConfig; globalConfig?: never | undefined; } | { collectionConfig?: never | undefined; globalConfig: SanitizedGlobalConfig; }); export declare function validateQueryPaths({ collectionConfig, errors, globalConfig, overrideAccess, policies, req, versionFields, where, }: Args): Promise<void>; export {}; //# sourceMappingURL=validateQueryPaths.d.ts.map