Files
klz-cables.com/.pnpm-store/v10/files/29/37361dc3d1c6aaa6906dbb6aa01dfd0384dbd0fe5c3954282fffa2e684e1f990f3524456af06241ce1605197857e1d4b7e9a62214fc62d9b93c9b3e01c6c93
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

22 lines
1.1 KiB
Plaintext

import type { FindOptions } from '../../collections/operations/local/find.js';
import type { JsonObject, PayloadRequest, PopulateType, SelectType } from '../../types/index.js';
import type { SanitizedGlobalConfig } from '../config/types.js';
import { type AfterReadArgs } from '../../fields/hooks/afterRead/index.js';
export type GlobalFindOneArgs = {
/**
* You may pass the document data directly which will skip the `db.findOne` database query.
* This is useful if you want to use this endpoint solely for running hooks and populating data.
*/
data?: Record<string, unknown>;
depth?: number;
draft?: boolean;
globalConfig: SanitizedGlobalConfig;
includeLockStatus?: boolean;
overrideAccess?: boolean;
populate?: PopulateType;
req: PayloadRequest;
showHiddenFields?: boolean;
slug: string;
} & Pick<AfterReadArgs<JsonObject>, 'flattenLocales'> & Pick<FindOptions<string, SelectType>, 'select'>;
export declare const findOneOperation: <T extends Record<string, unknown>>(args: GlobalFindOneArgs) => Promise<T>;
//# sourceMappingURL=findOne.d.ts.map