UNPKG

payload

Version:

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

16 lines 808 B
import type { SanitizedCollectionConfig, TypeWithID } from '../../collections/config/types.js'; import type { AccessResult } from '../../config/types.js'; import type { SanitizedGlobalConfig } from '../../globals/config/types.js'; import type { PayloadRequest, SelectType } from '../../types/index.js'; type Arguments<T> = { accessResult: AccessResult; doc: T; entity: SanitizedCollectionConfig | SanitizedGlobalConfig; entityType: 'collection' | 'global'; overrideAccess: boolean; req: PayloadRequest; select?: SelectType; }; declare const replaceWithDraftIfAvailable: <T extends TypeWithID>({ accessResult, doc, entity, entityType, req, select, }: Arguments<T>) => Promise<T>; export default replaceWithDraftIfAvailable; //# sourceMappingURL=replaceWithDraftIfAvailable.d.ts.map