Skip to content

Commit

Permalink
fix(react-intl): fix type issue w/ ts4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
longlho committed Oct 11, 2022
1 parent 0d03bb6 commit c366cc8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/react-intl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@ export const FormattedTime: React.FC<
}
> = createFormattedComponent('formatTime')
export const FormattedNumber: React.FC<
NumberFormatOptions &
CustomFormatConfig & {
value: number | bigint
Omit<NumberFormatOptions, 'localeMatcher'> &
CustomFormatConfig<'number'> & {
value: number
children?(formattedNumber: string): React.ReactElement | null
}
> = createFormattedComponent('formatNumber')
export const FormattedList: React.FC<
Expand Down

0 comments on commit c366cc8

Please sign in to comment.