Skip to content

Commit

Permalink
allow iterable with objects as children
Browse files Browse the repository at this point in the history
typescript will now allow core react HTML tags to accept multiple nodes
mixed with translation objects as children
  • Loading branch information
gshokanov committed Jul 6, 2022
1 parent 3f26db0 commit c5b3c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts4.1/index.d.ts
Expand Up @@ -100,7 +100,7 @@ declare module 'i18next' {
}

type ObjectOrNever = TypeOptions['allowObjectInHTMLChildren'] extends true
? Record<string, unknown>
? Record<string, unknown> | (Record<string, unknown> | React.ReactNode)[]
: never;
declare module 'react' {
interface HTMLAttributes<T> {
Expand Down

0 comments on commit c5b3c2b

Please sign in to comment.