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

Updated TS definitions #1247

Merged
merged 3 commits into from
Feb 9, 2021
Merged

Updated TS definitions #1247

merged 3 commits into from
Feb 9, 2021

Conversation

depoulo
Copy link
Contributor

@depoulo depoulo commented Feb 2, 2021

#778 had forgotten the HOC

If you wish, I can also update:

  • the change log
  • the version number

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 Feb 2, 2021

Coverage Status

Coverage remained the same at 96.372% when pulling 7a739fc on depoulo:patch-1 into 9cc6cec on i18next:master.

@jamuhl
Copy link
Member

jamuhl commented Feb 3, 2021

@pedrodurek can you have a look?

@@ -228,5 +228,5 @@ export interface TranslationProps<N extends Namespace = DefaultNamespace> {
}

export function Translation<N extends Namespace = DefaultNamespace>(
props: TranslationProps<N>,
props: TranslationProps<N> & { useSuspense?: boolean },
Copy link
Member

Choose a reason for hiding this comment

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

Hey @depoulo, thanks for your contribution.
src/index.d.ts is right, but here we should place useSuspense under TranslationProps.

of course 🤦🏽
@jamuhl jamuhl merged commit 6aca0bc into i18next:master Feb 9, 2021
@jamuhl
Copy link
Member

jamuhl commented Feb 9, 2021

thanks to all helping with this PR - published in react-i18next@11.8.6

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