Skip to content

Commit

Permalink
types: fix consider importing "*.js"
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Nov 10, 2023
1 parent 4619862 commit 3a65d21
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 13.3.2

- types: fix consider importing '\*.js'

### 13.3.1

- optimize defaultVariables feature introduced in last release
Expand Down
2 changes: 1 addition & 1 deletion icu.macro.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ReactElement } from 'react';
import { Trans } from './';
import { Trans } from './index.js';
import type { Namespace, TypeOptions, i18n, ParseKeys } from 'i18next';

export { Trans };
Expand Down
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { $Subtract, $Tuple } from './helpers';
import type { $Subtract, $Tuple } from './helpers.js';
import type {
ReactOptions,
i18n,
Expand All @@ -10,11 +10,11 @@ import type {
KeyPrefix,
} from 'i18next';
import * as React from 'react';
import { Trans, TransProps } from './TransWithoutContext';
export { initReactI18next } from './initReactI18next';
import { Trans, TransProps } from './TransWithoutContext.js';
export { initReactI18next } from './initReactI18next.js';

export const TransWithoutContext: typeof Trans;
export { Trans, TransProps }
export { Trans, TransProps };

export function setDefaults(options: ReactOptions): void;
export function getDefaults(): ReactOptions;
Expand Down

0 comments on commit 3a65d21

Please sign in to comment.