payload-gatekeeper
Version:
The ultimate access control gatekeeper for Payload CMS v3 - Advanced RBAC with wildcard support, auto role assignment, and flexible configuration
41 lines • 1.16 kB
TypeScript
import React from 'react';
export interface PermissionsSelectProps {
path: string;
name?: string;
label?: string;
required?: boolean;
hasMany?: boolean;
options?: Array<{
label: string;
value: string;
}>;
field?: {
path?: string;
name?: string;
label?: string;
required?: boolean;
hasMany?: boolean;
options?: Array<{
label: string;
value: string;
}>;
admin?: {
description?: string;
className?: string;
};
validate?: (value: string | string[] | null, args?: {
siblingData?: Record<string, unknown>;
}) => string | true | Promise<string | true>;
};
admin?: {
description?: string;
className?: string;
};
validate?: (value: string | string[] | null, args?: {
siblingData?: Record<string, unknown>;
}) => string | true | Promise<string | true>;
readOnly?: boolean;
permissions?: string[];
}
export declare const PermissionsSelect: React.FC<PermissionsSelectProps>;
//# sourceMappingURL=PermissionsSelect.d.ts.map