-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
Add type safety for getT function #1184
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @hichemfantar !!
@all-contributors add please @hichemfantar for code |
I've put up a pull request to add @please! 🎉 |
@allc add @hichemfantar
Hey, it looks like the bot added me incorrectly |
I've put up a pull request to add @hichemfantar! 🎉 |
* Update type-safety.md * Update next-translate.d.ts with new TranslateFunction interface * Refactor translation types in next-translate.d.ts * Refactor type safety in TranslateFunction
@hichemfantar already in 3.0.0-canary.3 |
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update
[ ] Bug fix
[ X ] New feature
[ ] Other, please explain:
What changes did you make? (Give an overview)
TranslateFunction
into its own interfacegetT
Which issue (if any) does this pull request address?
closes #1185
Is there anything you'd like reviewers to focus on?