payload-auth-plugin
Version:
Authentication plugin for Payload CMS
22 lines (19 loc) • 789 B
TypeScript
import { CollectionConfig, Field } from 'payload';
/**
* A higher order function that takes the collection config for the argument
* @param incomingCollection
* @returns {CollectionConfig}
*/
declare const withUsersCollection: (incomingCollection: Omit<CollectionConfig, "fields"> & {
fields?: Field[] | undefined;
}) => CollectionConfig;
/**
* A higher order function that takes the collection config and a Users collection slug for the arguments
* @param incomingCollection
* @param userCollectionSlug
* @returns {CollectionConfig}
*/
declare const withAccountCollection: (incomingCollection: Omit<CollectionConfig, "fields"> & {
fields?: Field[] | undefined;
}, usersCollectionSlug: string) => CollectionConfig;
export { withAccountCollection, withUsersCollection };