Skip to content

Commit

Permalink
Add missing generic type for HTMLAttributes (#1499)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrodurek authored May 6, 2022
1 parent 7dc8d29 commit 0c34ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts4.1/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ type ObjectOrNever = TypeOptions['allowObjectInHTMLChildren'] extends true
? Record<string, unknown>
: never;
declare module 'react' {
interface HTMLAttributes {
interface HTMLAttributes<T> {
children?: ReactNode | ObjectOrNever;
}
}
Expand Down

0 comments on commit 0c34ff5

Please sign in to comment.