Skip to content

Commit

Permalink
fix: the type of defaultNS in I18nextProvider should support `str…
Browse files Browse the repository at this point in the history
…ing[]` (#1633)

Co-authored-by: Aaron_Zhou <aaron_zhou@digifinex.org>
  • Loading branch information
Clarkkkk and Aaron_Zhou authored Apr 24, 2023
1 parent 7026d54 commit 807182d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<I18nextProviderProps>;
Expand Down

0 comments on commit 807182d

Please sign in to comment.