Skip to content

TemplateOutputBuilder

Refines a Template Definition result.

OutputBuilder.template

array(value?): this

Declares the result as an array of Template Definitions.

boolean

Whether the result is an array.

this

This builder for chaining.

true

mandatory(value?): this

Marks the Template as always present.

boolean

Whether the Template is required.

this

This builder for chaining.

true

toDefinition(): ArrayOutputDefinition | TemplateOutputDefinition

Emits the Template output Definition.

ArrayOutputDefinition | TemplateOutputDefinition