Skip to content

Commit

Permalink
fix(react-intl): explicitly set type of MemoizedFormattedMessage (#4104)
Browse files Browse the repository at this point in the history
Co-authored-by: Long Ho <longlho@users.noreply.github.com>
  • Loading branch information
wereHamster and longlho committed Jul 16, 2023
1 parent 2027875 commit 8dd659a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react-intl/src/components/message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ function FormattedMessage(props: Props) {
}
FormattedMessage.displayName = 'FormattedMessage'

const MemoizedFormattedMessage = React.memo<Props>(FormattedMessage, areEqual)
const MemoizedFormattedMessage: React.ComponentType<Props> = React.memo<Props>(
FormattedMessage,
areEqual
)
MemoizedFormattedMessage.displayName = 'MemoizedFormattedMessage'

export default MemoizedFormattedMessage

0 comments on commit 8dd659a

Please sign in to comment.