Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update types to support t function redesign #1615

Merged
merged 3 commits into from
Jun 15, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix path
adrai committed Jun 13, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 781f6c8733cadaa11f7f1e80c93d5972ada3c367
2 changes: 1 addition & 1 deletion test/typescript/TransWithoutContext.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { useTranslation } from 'react-i18next';
import { Trans } from '../../@types/TransWithoutContext';
import { Trans } from '../../TransWithoutContext';

function basic() {
return <Trans>Foo</Trans>;
2 changes: 1 addition & 1 deletion test/typescript/custom-types/TransWithoutContext.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { useTranslation } from 'react-i18next';
import { Trans } from '../../../@types/TransWithoutContext';
import { Trans } from '../../../TransWithoutContext';

function defaultNamespaceUsage() {
return <Trans i18nKey="foo">foo</Trans>;