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

Accept const components prop for Trans. #1224

Merged
merged 1 commit into from
Dec 14, 2020
Merged

Conversation

pcorpet
Copy link
Contributor

@pcorpet pcorpet commented Dec 11, 2020

Typescript bug fix: the components prop of Trans does not need to be mutable as it won't be modified. I'm changing the types to reflect that. Note that it was already done previously for Typescript <4.1 for arrays.

Checklist

  • only relevant code is changed (make a diff before you submit the PR)
  • run tests npm run test
  • tests are included
  • documentation is changed or added

@jamuhl
Copy link
Member

jamuhl commented Dec 11, 2020

@pedrodurek can you please give a review on this...thank you

@coveralls
Copy link

Coverage Status

Coverage remained the same at 96.372% when pulling 7de332c on pcorpet:array-type into 026717d on i18next:master.

Copy link
Member

@pedrodurek pedrodurek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with the changes made

@jamuhl jamuhl merged commit 6e9a17a into i18next:master Dec 14, 2020
@jamuhl
Copy link
Member

jamuhl commented Dec 14, 2020

was published in react-i18next@11.8.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants