Skip to content

Commit

Permalink
Fix react merged types (#1606)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrodurek committed Feb 2, 2023
1 parent 11bfe43 commit 34d9e60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ declare module 'i18next' {
type ObjectOrNever = TypeOptions['allowObjectInHTMLChildren'] extends true
? Record<string, unknown>
: never;
type ReactI18NextChild = React.ReactNode | ObjectOrNever;

type ReactI18NextChildren = React.ReactNode | ObjectOrNever;

declare module 'react' {
interface HTMLAttributes<T> {
children?: ReactI18NextChild | Iterable<ReactI18NextChild>;
children?: ReactI18NextChildren;
}
}

Expand Down

0 comments on commit 34d9e60

Please sign in to comment.