From e70f6ae818215755316cbf4a483d09f9de36089a Mon Sep 17 00:00:00 2001 From: Pedro Durek Date: Wed, 21 Jun 2023 17:30:11 -0600 Subject: [PATCH] Fix performance issue in Trans component --- TransWithoutContext.d.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/TransWithoutContext.d.ts b/TransWithoutContext.d.ts index 827c71ea3..bf30d2ae2 100644 --- a/TransWithoutContext.d.ts +++ b/TransWithoutContext.d.ts @@ -1,12 +1,4 @@ -import type { - i18n, - ParseKeys, - Namespace, - TypeOptions, - TOptions, - TFunction, - KeyPrefix, -} from 'i18next'; +import type { i18n, ParseKeys, Namespace, TypeOptions, TOptions, TFunction } from 'i18next'; import * as React from 'react'; type _DefaultNamespace = TypeOptions['defaultNS']; @@ -38,6 +30,6 @@ export function Trans< Key extends ParseKeys, Ns extends Namespace = _DefaultNamespace, TOpt extends TOptions = {}, - KPrefix extends KeyPrefix = undefined, + KPrefix = undefined, E = React.HTMLProps, >(props: TransProps): React.ReactElement;