Skip to content

TemplateRoleInstance

Defined in: runtime/template.ts:13

  • BaseRoleInstance

readonly prn: string

Defined in: runtime/role.ts:5

BaseRoleInstance.prn

assertRole(item): Promise<true>

Defined in: runtime/template.ts:18

Asserts that the current, active instance has the current role. If successful, this will return true. Otherwise it will throw an Error.

unknown

Promise<true>


checkRole(item): Promise<boolean>

Defined in: runtime/template.ts:24

Checks that the current, active instance has the current role; returning true/false if that role is present.

unknown

Promise<boolean>