Skip to content

Commit f9571ac

Browse files
authored
Type PluginOptions properly (#235)
* Bump i18next version * Augment PluginOptions with proper detection type
1 parent 0994852 commit f9571ac

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

index.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,9 @@ export default class I18nextBrowserLanguageDetector implements i18next.LanguageD
6969
services: any;
7070
i18nOptions: any;
7171
}
72+
73+
declare module 'i18next' {
74+
interface PluginOptions {
75+
detection?: DetectorOptions;
76+
}
77+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"eslint": "6.1.0",
3535
"eslint-config-airbnb": "17.1.1",
3636
"expect.js": "0.3.1",
37-
"i18next": "^19.0.0",
37+
"i18next": "19.9.3",
3838
"mkdirp": "0.5.1",
3939
"mocha": "7.1.2",
4040
"rimraf": "2.6.3",

0 commit comments

Comments
 (0)