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

fix: typescript definition of context object #1160

Merged
merged 1 commit into from
Aug 20, 2020
Merged

fix: typescript definition of context object #1160

merged 1 commit into from
Aug 20, 2020

Conversation

seanplwong
Copy link
Contributor

@seanplwong seanplwong commented Aug 18, 2020

Wrap I18nContext value in an object

FIX: i18next/next-i18next#799
FIX: i18next/next-i18next#789

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

@coveralls
Copy link

coveralls commented Aug 18, 2020

Coverage Status

Coverage remained the same at 95.682% when pulling e5f663a on seanplwong:master into a24180f on i18next:master.

@adrai adrai requested a review from rosskevin August 18, 2020 15:08
Copy link
Collaborator

@rosskevin rosskevin left a comment

Choose a reason for hiding this comment

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

Thanks @seanplwong, please add a usage test to the test/typescript directory to exercise it and prevent regressions in the future.

@rosskevin rosskevin changed the title fix: typescript definition fix: typescript definition of context object Aug 18, 2020
Wrap I18nContext value in an object
- add test for typedef
@seanplwong seanplwong requested a review from rosskevin August 20, 2020 14:52
@seanplwong
Copy link
Contributor Author

In fact I could help get some types generated at build time later, so that manual maintenance on types could be reduced

@rosskevin rosskevin merged commit 364653c into i18next:master Aug 20, 2020
@rosskevin
Copy link
Collaborator

Thanks @seanplwong, @jamuhl this can be a patch release

@jamuhl
Copy link
Member

jamuhl commented Aug 21, 2020

published in react-i18next@11.7.1

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

Successfully merging this pull request may close these issues.

typescript I18nContext
5 participants