Skip to main content

SimpleSegment

Stentor API Reference


Stentor API Reference / stentor-models/src / SimpleSegment

Interface: SimpleSegment

Defined in: packages/stentor-models/src/Response/ResponseSegment.ts:12

Simple segment, just the segment that will replace the template.

Extends​

Properties​

conditions?​

optional conditions: string | Conditions

Defined in: packages/stentor-models/src/Conditional.ts:73

Conditions to be met.

Can either be a Conditions object or a string such as "foo('bar') || false"

Inherited from​

Conditioned.conditions


segment​

segment: string | ResponseOutput

Defined in: packages/stentor-models/src/Response/ResponseSegment.ts:19

The segment replaces the template in the templated string.

In the string "${GREETING}, how are you?", the segment will replace ${GREETING}.