Skip to content

Commit

Permalink
chore: fixup typings to remove JSX error (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slashgear authored Feb 8, 2023
1 parent 6ff3da8 commit 5fbfc66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/react-i18n/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module '@m6web/react-i18n' {
import { ElementType, Props } from 'react';
import { ElementType, FC } from 'react';

interface TranslateFunctionOptions {
data?: Record<string, any>;
Expand Down Expand Up @@ -44,9 +44,9 @@ declare module '@m6web/react-i18n' {
parseHTML?: boolean,
): TranslateFunction;

const I18nProvider: ElementType<I18nProviderProps>;
const I18nProvider: FC<I18nProviderProps>;

const Trans: ElementType<TransProps>;
const Trans: FC<TransProps>;

const HtmlTrans: ElementType<HtmlTransProps>;
const HtmlTrans: FC<HtmlTransProps>;
}

0 comments on commit 5fbfc66

Please sign in to comment.