MCPcopy
hub / github.com/formatjs/formatjs / printSimpleFormatElement

Function printSimpleFormatElement

packages/icu-messageformat-parser/printer.ts:153–159  ·  view source on GitHub ↗
(
  el: DateElement | TimeElement | NumberElement
)

Source from the content-addressed store, hash-verified

151}
152
153function printSimpleFormatElement(
154 el: DateElement | TimeElement | NumberElement
155) {
156 return `{${el.value}, ${TYPE[el.type]}${
157 el.style ? `, ${printArgumentStyle(el.style)}` : ''
158 }}`
159}
160
161function printNumberSkeletonToken(token: NumberSkeletonToken): string {
162 const {stem, options} = token

Callers 1

doPrintASTFunction · 0.85

Calls 1

printArgumentStyleFunction · 0.85

Tested by

no test coverage detected