Skip to content

Commit 9174447

Browse files
chore: add string param documentation
1 parent 4fb7bac commit 9174447

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/use-intl/src/core/createFormatter.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ export default function createFormatter({
128128

129129
function dateTime(
130130
/** If a number is supplied, this is interpreted as a UTC timestamp. */
131+
/** If a string is supplied, this is interpreted as an ISO 8601 string. */
131132
value: Date | number | string,
132133
/** If a time zone is supplied, the `value` is converted to that time zone.
133134
* Otherwise the user time zone will be used. */

0 commit comments

Comments
 (0)