File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -111,19 +111,20 @@ interface CatchallKey {
111111
112112Each ` Pattern ` contains a linear sequence of text and placeholders corresponding to potential output of a message.
113113
114- Each element of the ` Pattern ` MUST either be a non-empty string or an ` Expression ` object.
114+ Each element of the ` Pattern ` MUST either be a non-empty string, an ` Expression ` , or a ` Markup ` object.
115115String values represent literal _ text_ .
116116String values include all processing of the underlying _ text_ values,
117117including escape sequence processing.
118- ` Expression ` values wrap each of the _ expression_ shapes.
118+ ` Expression ` wraps each of the potential _ expression_ shapes.
119+ ` Markup ` wraps each of the potential _ markup_ shapes.
119120
120121Implementations MUST NOT rely on the set of ` Expression ` and
121122` Markup ` interfaces defined in this document being exhaustive.
122123Future versions of this specification might define additional
123124expressions or markup.
124125
125126``` ts
126- type Pattern = Array <string | Expression >;
127+ type Pattern = Array <string | Expression | Markup >;
127128
128129type Expression =
129130 | LiteralExpression
Original file line number Diff line number Diff line change 146146 "pattern" : {
147147 "type" : " array" ,
148148 "items" : {
149- "oneOf" : [{ "type" : " string" }, { "$ref" : " #/$defs/expression" }]
149+ "oneOf" : [
150+ { "type" : " string" },
151+ { "$ref" : " #/$defs/expression" },
152+ { "$ref" : " #/$defs/markup" }
153+ ]
150154 }
151155 },
152156
You can’t perform that action at this time.
0 commit comments