i18next / i18next-http-backend

i18next-http-backend is a backend layer for i18next using in Node.js, in the browser and for Deno.
MIT License
453 stars 70 forks source link

BackendOptions TypeScript interface missing reloadInterval #59

Closed TrueWill closed 3 years ago

TrueWill commented 3 years ago

🐛 Bug Report

BackendOptions TypeScript interface is missing reloadInterval (at a minimum).

https://github.com/i18next/i18next-http-backend/blob/master/index.d.ts#L7

To Reproduce

const httpApiOptions: BackendOptions = {
  loadPath: '/locales/{{lng}}/{{ns}}.json',
  allowMultiLoading: false,
  crossDomain: false,
  reloadInterval: false,  // flagged by TypeScript
};

Expected behavior

No TypeScript errors.

Your Environment

adrai commented 3 years ago

@pedrodurek if you're already in progress of creating a PR for the other issue....