-
Notifications
You must be signed in to change notification settings - Fork 462
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
Update types #212
Update types #212
Conversation
Thanks @iliyaZelenko ! |
Assuming I won't have time in the coming days to help providing these type definitions, but the types should be provided for the rest of variables aswell. I'll be able to final review if someone take the time to provide the missing definitions. |
@iliyaZelenko do you see what's missing according to kevin's comment? Do you think you'd be able to complete the definitions before we merge? |
@paulgv well, today I will make types for the remaining properties. |
@iliyaZelenko Cool, for the |
@kevinmarrec It looks like I made types for all options, but there wasn’t much point, as these types will not be used in the code of this package and it is unlikely that someone will use them in their project. The main thing is that I have extended the I tested these types on my small project, there were no errors. |
@iliyaZelenko Alright, great job ! I can't really take the time to check if types are all good, but it seems good and anyway it's not something that can break the project, it's "just" types. So if it turns out that a type is not properly defined, we'll change it. I trust you about having tested these types so let's stick with that ! |
Many thanks to both of you! |
This code throws a error:
It helps me.
Maybe this is not the best solution, but it should fix the error.
I think it's worth adding this for the rest of the variables:
https://github.com/nuxt-community/nuxt-i18n/blob/90bcd80e7f0cbf4f00d15353c4eadea31f6ff892/src/plugins/main.js#L53-L59