-
-
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
Fix default namespace not working for fallback keys, fix types #470
Conversation
@aralroca Is there some reason why all the types are defined in index.tsx, and not defined on the functions/classes themselves? I feel like a lot of the benefit of Typescript's static analysis is lost when the library uses so much type casting. |
I took the liberty of replacing type casts with return types and type parameters where it makes sense, to make it more idiomatic Typescript. |
Fix bug with applying default ns to fallback
…re it makes sense
Replace Object with object, see https://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html
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.
@andrehsu thanks a lot for your contribution! It's amazing! About the TypeScript types, they are in the index.ts maybe because of my lack of TypeScript experience. If you think it could be better, feel free to PR!
@allcontributors please add @andrehsu for code |
I've put up a pull request to add @andrehsu! 🎉 |
@andrehsu I prepublished 1.0.2-canary.8 with your change if you want to start using it |
No description provided.