From 0118b3675558c93ee73788e5810f8638481f7e87 Mon Sep 17 00:00:00 2001 From: javiertury Date: Sun, 3 Sep 2023 08:02:49 +0200 Subject: [PATCH] Fix missing TransWithoutContext type (#1671) (#1672) --- index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index b2d58911..82f1cb97 100644 --- a/index.d.ts +++ b/index.d.ts @@ -10,9 +10,12 @@ import type { KeyPrefix, } from 'i18next'; import * as React from 'react'; -export { Trans, TransProps } from './TransWithoutContext'; +import { Trans, TransProps } from './TransWithoutContext'; export { initReactI18next } from './initReactI18next'; +export const TransWithoutContext: typeof Trans; +export { Trans, TransProps } + export function setDefaults(options: ReactOptions): void; export function getDefaults(): ReactOptions; export function setI18n(instance: i18n): void;