Skip to content

RolePolicy

type RolePolicy<Action> = Record<string, readonly Action[] | "*">;

Defined in: src/authorization/roles.ts:20

A role policy: each role maps to an explicit action list or the "*" wildcard.

Type Parameter Default type
Action extends string string