UNPKG

payload-gatekeeper

Version:

The ultimate access control gatekeeper for Payload CMS v3 - Advanced RBAC with wildcard support, auto role assignment, and flexible configuration

12 lines 473 B
import type { CollectionConfig } from 'payload'; import type { Permission } from '../types'; /** * Generate permissions for all collections dynamically * Optimized with functional programming and pre-computed constants */ export declare const generateCollectionPermissions: (collections: CollectionConfig[], customPermissions?: Array<{ label: string; value: string; description?: string; }>) => Permission[]; //# sourceMappingURL=generatePermissions.d.ts.map