SimpleSegment
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​
Partial\<Conditioned>
Properties​
conditions?​
optionalconditions: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​
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}.