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

Update BackendModule interface to allow null or undefined for the cal… #1244

Merged
merged 1 commit into from
May 13, 2019
Merged

Conversation

bopfer
Copy link
Contributor

@bopfer bopfer commented May 10, 2019

The current typings require that there is always an Error passed in to the BackendModule callbacks. null | undefined needs to be added for callbacks with no error. null because that is what is shown in the docs for creating a custom backend and it's commonly used. undefined because many projects use linting rules that disallow null in favor of undefined.

I don't think there are any tests that need updating based on this change. Please let me know if that is incorrect.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.341% when pulling 6a7ca52 on bopfer:master into bd4a432 on i18next:master.

@jamuhl jamuhl requested a review from rosskevin May 11, 2019 06:12
@rosskevin rosskevin merged commit 3c33290 into i18next:master May 13, 2019
@rosskevin
Copy link
Collaborator

Thanks @bopfer. @jamuhl this can be a patch release.

@jamuhl
Copy link
Member

jamuhl commented May 14, 2019

published in i18next@15.1.1

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