Skip to content

RolesOptions

RolesOptions = object

Defined in: packages/schema/src/access/roles.ts:9

The second argument of defineRoles.

optional names?: readonly string[]

Defined in: packages/schema/src/access/roles.ts:13

Resource and area names; when given, unknown names in capabilities throw at definition.


optional teamOf?: (user) => readonly (string | number)[] | Promise<readonly (string | number)[]>

Defined in: packages/schema/src/access/roles.ts:11

Ids of the users in user’s team; .team scopes become owner IN teamOf(user).

AccessUser

readonly (string | number)[] | Promise<readonly (string | number)[]>