From ceabefa1d72fcf9eb11b36cc1ef2c82b01d6a220 Mon Sep 17 00:00:00 2001 From: Aaron_Zhou Date: Mon, 24 Apr 2023 10:21:34 +0800 Subject: [PATCH] fix: the type of `defaultNS` in `I18nextProvider` should support `string[]` --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 7b418ef3b..609901b6f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -130,7 +130,7 @@ export function withTranslation< export interface I18nextProviderProps { children?: React.ReactNode; i18n: i18n; - defaultNS?: string; + defaultNS?: string | string[]; } export const I18nextProvider: React.FunctionComponent;