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

API is incompatible between Minor versions #5

Closed
jupardo opened this issue Jan 29, 2021 · 2 comments
Closed

API is incompatible between Minor versions #5

jupardo opened this issue Jan 29, 2021 · 2 comments

Comments

@jupardo
Copy link

jupardo commented Jan 29, 2021

I've found that 1.2.3 t method is incompatible with previous signatures, as version 1.1 supports using an array as key but 1.2 doesn't support that. Is there any plan to implement support for using array as key in future versions? Or shall we stop using t([]) signature?

@lopezjurip
Copy link
Member

Hi @jupardo, sorry we forgot about the [] signature. I just updated the typings to not display it as an error but the returned type will be unknown.

yarn add next-rosetta@1.2.2

We are still trying to make dot and array path notation work with type inference.

If you have type issues when rendering with react cast them as any

@jupardo
Copy link
Author

jupardo commented Feb 1, 2021

Thank you!

@jupardo jupardo closed this as completed Feb 1, 2021
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

No branches or pull requests

2 participants