payload-authjs
Version:
A Payload CMS 3 plugin for Auth.js 5
19 lines (18 loc) • 615 B
TypeScript
import { type Field } from "payload";
/**
* Merge fields deeply
* - overriding fields with the same name
* - returning merged field and the rest of the fields that were not merged
*
* @param path - The path of the field (starting from the collection slug)
* @param baseFields - The base fields
* @param patchFields - The fields that should merge with the base fields (but base fields have priority)
*/
export declare const mergeFields: ({ path, baseFields, patchFields, }: {
path: string;
baseFields: Field[];
patchFields: Field[];
}) => {
mergedFields: Field[];
restFields: Field[];
};