Skip to content

Commit

Permalink
add exactOptionalPropertyTypes support to html attributes (#3868)
Browse files Browse the repository at this point in the history
* add exactOptionalPropertyTypes support to attributes

* add exactOptionalPropertyTypes support to jsx and key attributes
  • Loading branch information
deadem authored Feb 6, 2023
1 parent 8a30bcc commit b7d9e61
Show file tree
Hide file tree
Showing 2 changed files with 1,343 additions and 588 deletions.
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export type ComponentChild =
export type ComponentChildren = ComponentChild[] | ComponentChild;

export interface Attributes {
key?: Key;
jsx?: boolean;
key?: Key | undefined;
jsx?: boolean | undefined;
}

export interface ClassAttributes<T> extends Attributes {
Expand Down
Loading

0 comments on commit b7d9e61

Please sign in to comment.