From 94c4c7c942053dfa4e8930a27736cd64982d4978 Mon Sep 17 00:00:00 2001 From: xmflsct Date: Thu, 17 Nov 2022 20:09:07 +0100 Subject: [PATCH] Prevent i18next from barking https://github.com/i18next/i18next/pull/1865 --- src/@types/i18next.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/@types/i18next.d.ts diff --git a/src/@types/i18next.d.ts b/src/@types/i18next.d.ts new file mode 100644 index 00000000..a1693a61 --- /dev/null +++ b/src/@types/i18next.d.ts @@ -0,0 +1,8 @@ +import 'i18next' + +declare module 'i18next' { + interface CustomTypeOptions { + defaultNS: 'common', + returnNull: false + } +}