From b3e7d3d0542708556656d66707d9282c664ed655 Mon Sep 17 00:00:00 2001 From: Dermoumi S Date: Fri, 3 Jun 2022 09:39:42 +0100 Subject: [PATCH] fix Translation component types regression (#1511) --- ts4.1/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ts4.1/index.d.ts b/ts4.1/index.d.ts index 44cca098..3f561805 100644 --- a/ts4.1/index.d.ts +++ b/ts4.1/index.d.ts @@ -368,7 +368,10 @@ export interface I18nextProviderProps { export const I18nextProvider: React.FunctionComponent; export const I18nContext: React.Context<{ i18n: i18n }>; -export interface TranslationProps { +export interface TranslationProps< + N extends Namespace = DefaultNamespace, + TKPrefix extends KeyPrefix = undefined +> { children: ( t: TFunction, options: {