Skip to content

Commit

Permalink
fix Translation component types regression (#1511)
Browse files Browse the repository at this point in the history
  • Loading branch information
dermoumi authored Jun 3, 2022
1 parent 985356c commit b3e7d3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ts4.1/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,10 @@ export interface I18nextProviderProps {
export const I18nextProvider: React.FunctionComponent<I18nextProviderProps>;
export const I18nContext: React.Context<{ i18n: i18n }>;

export interface TranslationProps<N extends Namespace = DefaultNamespace, TKPrefix> {
export interface TranslationProps<
N extends Namespace = DefaultNamespace,
TKPrefix extends KeyPrefix<N> = undefined
> {
children: (
t: TFunction<N, TKPrefix>,
options: {
Expand Down

0 comments on commit b3e7d3d

Please sign in to comment.