Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Typescript] Error when providing "textComponent" to createIntl configuration object #2320

Closed
swillis12 opened this issue Nov 18, 2020 · 0 comments
Labels

Comments

@swillis12
Copy link

Which package?
@formatjs/intl

Describe the bug
Typescript shows an error when providing "textComponent" to createIntl. Adding ts-ignore it actually works though:

To Reproduce
Steps to reproduce the behavior:
https://codesandbox.io/s/react-intl-forked-mfl1j

Expected behavior
Typescript should not show an error in this case.

Screenshots
image
image

Desktop (please complete the following information):

  • OS: OSX 11.0.1
  • Browser Chrome
  • Version 86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant