i18next-xhr-backend
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -0,1 +1,5 @@ | ||
### 3.2.2 | ||
- typescript: Hotfix TS error importing types from i18next [333](https://github.com/i18next/i18next-xhr-backend/pull/333) | ||
### 3.2.1 | ||
@@ -2,0 +6,0 @@ |
@@ -1,2 +0,2 @@ | ||
import i18next from 'i18next'; | ||
import { BackendModule, ReadCallback } from 'i18next'; | ||
@@ -67,8 +67,8 @@ type LoadPathOption = string | ((lngs: string[], namespaces: string[]) => string); | ||
export default class I18NextXhrBackend implements i18next.BackendModule<BackendOptions> { | ||
export default class I18NextXhrBackend implements BackendModule<BackendOptions> { | ||
constructor(services?: any, options?: BackendOptions); | ||
init(services?: any, options?: BackendOptions): void; | ||
readMulti(languages: string[], namespaces: string[], callback: i18next.ReadCallback): void; | ||
read(language: string, namespace: string, callback: i18next.ReadCallback): void; | ||
loadUrl(url: string, callback: i18next.ReadCallback): void; | ||
readMulti(languages: string[], namespaces: string[], callback: ReadCallback): void; | ||
read(language: string, namespace: string, callback: ReadCallback): void; | ||
loadUrl(url: string, callback: ReadCallback): void; | ||
create(languages: string | string[], namespace: string, key: string, fallbackValue: string): void; | ||
@@ -75,0 +75,0 @@ type: 'backend'; |
{ | ||
"name": "i18next-xhr-backend", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "backend layer for i18next using browsers xhr", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/i18nextXHRBackend.js", |
49725