Skip to content

Commit a32402e

Browse files
alexandr-garbuzovqwerty541
authored andcommitted
fix: resolve vscode type errors inside I18n class (anuraghazra#4605)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
1 parent 57eada3 commit a32402e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/common/I18n.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @ts-check
2+
13
const FALLBACK_LOCALE = "en";
24

35
/**
@@ -9,7 +11,7 @@ class I18n {
911
*
1012
* @param {Object} options Options.
1113
* @param {string=} options.locale Locale.
12-
* @param {Object} options.translations Translations.
14+
* @param {any} options.translations Translations.
1315
*/
1416
constructor({ locale, translations }) {
1517
this.locale = locale || FALLBACK_LOCALE;

0 commit comments

Comments
 (0)