@@ -100,17 +100,17 @@ declare module "react-intl-universal" {
100100 * @example
101101 * // For English locale (en-US):
102102 * formatList(["str1", "str2", "str3"])
103- * // Returns: ['str1', ', ', 'str2', ', ', 'str3'] (with comma separators)
103+ * // Returns: ['str1', ', ', 'str2', ', ', 'str3'] (with comma separators) => Render as: ``str1, str2, str3``` in React.js
104104 *
105105 * @example
106106 * // For Chinese locale (zh-CN):
107107 * formatList(["str1", "str2", "str3"])
108- * // Returns: ['str1', '、', 'str2', '、', 'str3'] (with ideographic comma separators)
108+ * // Returns: ['str1', '、', 'str2', '、', 'str3'] (with ideographic comma separators) => Render as: ``str1、str2、str3``` in React.js
109109 *
110110 * @example
111111 * // With custom options for disjunction (or) in English:
112112 * formatList(["str1", "str2", "str3"], { type: "disjunction" })
113- * // Returns: ['str1', ', ', 'str2', ', or ', 'str3']
113+ * // Returns: ['str1', ', ', 'str2', ', or ', 'str3'] => Render as: ``str1, str2, or str3``` in React.js
114114 */
115115 export function formatList (
116116 nodeList : React . ReactNode [ ] ,
@@ -186,23 +186,19 @@ declare module "react-intl-universal" {
186186 *
187187 * @example
188188 * // For English locale (en-US):
189- * formatNumber(1234.56)
190- * // => "1,234.56"
189+ * formatNumber(1234.56) // => "1,234.56"
191190 *
192191 * @example
193192 * // For German locale (de-DE):
194- * formatNumber(1234.56)
195- * // => "1.234,56"
193+ * formatNumber(1234.56) // => "1.234,56"
196194 *
197195 * @example
198196 * // For Chinese locale (zh-CN):
199- * formatNumber(1234.56)
200- * // => "1,234.56"
197+ * formatNumber(1234.56) // => "1,234.56"
201198 *
202199 * @example
203200 * // Invalid number input:
204- * formatNumber("not-a-number")
205- * // => "not-a-number"
201+ * formatNumber("not-a-number") // => "not-a-number"
206202 */
207203 export function formatNumber ( number : number ) : string ;
208204
0 commit comments