TemplateRoleInstance
Defined in: runtime/template.ts:13
Extends
Section titled “Extends”BaseRoleInstance
Properties
Section titled “Properties”
readonlyprn:string
Defined in: runtime/role.ts:5
Inherited from
Section titled “Inherited from”BaseRoleInstance.prn
Methods
Section titled “Methods”assertRole()
Section titled “assertRole()”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.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”Promise<true>
checkRole()
Section titled “checkRole()”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.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”Promise<boolean>