Skip to main content Link Menu Expand (external link) Document Search Copy Copied

PatternElement type

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

The contents of a message are a sequence of pattern elements, which may be immediately defined literal values, a reference to a value that depends on another message, the value of some runtime variable, or some function defined elsewhere.


export type PatternElement = Expression | Junk | Literal | MarkupEnd | MarkupStart | Placeholder | Text | VariableRef;

References: Expression, Junk, Literal, MarkupEnd, MarkupStart, Placeholder, Text, VariableRef


Depending on the syntax, pattern elements may be wrapped within a Placeholder.