basalt / ai/src / renderPermissionsFile
Function: renderPermissionsFile()
> renderPermissionsFile(name): string
Defined in: ai/src/make/permissions.ts:19
Generate <kebab>.permissions.ts: the permission constants plus a grant<Name>Permissions(store, role) helper — so registering RBAC for the resource is one call in the app's seed/setup, closing the loop F4 opened (guards without a way to grant them).
Parameters
name
string
Returns
string