Skip to content

Commit

Permalink
fix: forgot keyof
Browse files Browse the repository at this point in the history
  • Loading branch information
dBianchii committed Sep 18, 2024
1 parent 4c12355 commit 090294d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/use-intl/src/core/createFormatter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export default function createFormatter({
* Otherwise the user time zone will be used. */
formatOrOptions?:
| (keyof IntlFormats['dateTime'] extends string
? IntlFormats['dateTime']
? keyof IntlFormats['dateTime']
: string)
| DateTimeFormatOptions
) {
Expand All @@ -189,7 +189,7 @@ export default function createFormatter({
* Otherwise the user time zone will be used. */
formatOrOptions?:
| (keyof IntlFormats['dateTime'] extends string
? IntlFormats['dateTime']
? keyof IntlFormats['dateTime']
: string)
| DateTimeFormatOptions
) {
Expand All @@ -210,7 +210,7 @@ export default function createFormatter({
value: number | bigint,
formatOrOptions?:
| (keyof IntlFormats['number'] extends string
? IntlFormats['number']
? keyof IntlFormats['number']
: string)
| NumberFormatOptions
) {
Expand Down Expand Up @@ -298,7 +298,7 @@ export default function createFormatter({
value: Iterable<Value>,
formatOrOptions?:
| (keyof IntlFormats['list'] extends string
? IntlFormats['list']
? keyof IntlFormats['list']
: string)
| Intl.ListFormatOptions
): Value extends string ? string : Iterable<ReactElement> {
Expand Down

0 comments on commit 090294d

Please sign in to comment.