TemplateRoleBuilder
Configures a Template Role, resolved per Item by its callback.
- TemplateBuilder.addRole
- TemplateRoleDefinition for the emitted Definition
- TemplateRoleInstance for checking the Role against an Item
Extends
Section titled “Extends”Properties
Section titled “Properties”
readonlyprn:string
Platform Resource Name of the declared resource, derived from the App key and resource key.
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”setDescription()
Section titled “setDescription()”setDescription(
description):this
Sets the description emitted into the definition and rendered in generated reference and application assets.
Parameters
Section titled “Parameters”description
Section titled “description”string
Human-readable description of the resource.
Returns
Section titled “Returns”this
This builder for chaining.
Inherited from
Section titled “Inherited from”BaseRoleBuilder.setDescription
toDefinition()
Section titled “toDefinition()”toDefinition():
TemplateRoleDefinition
Emits the Role Definition, including its resolver callback.

