Skip to content

Commit 661e78e

Browse files
committed
allow every data-type for class attribute
1 parent 2692a83 commit 661e78e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jsx.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ export namespace JSX {
2727
{
2828
class?:
2929
| Attribute
30-
| { [className: string]: boolean|Supplier<boolean> }
30+
| { [className: string]: unknown|Supplier<unknown> }
3131
| Array<
3232
string
3333
| Supplier<string>
34-
| { [className: string]: boolean|Supplier<boolean> }
34+
| { [className: string]: unknown|Supplier<unknown> }
3535
>,
3636
style?:
3737
| Attribute
@@ -58,11 +58,11 @@ export namespace JSX {
5858
| Attribute
5959

6060
// class attribute
61-
| { [className: string]: boolean|Supplier<boolean> }
61+
| { [className: string]: unknown|Supplier<unknown> }
6262
| Array<
6363
string
6464
| Supplier<string>
65-
| { [className: string]: boolean|Supplier<boolean> }
65+
| { [className: string]: unknown|Supplier<unknown> }
6666
>
6767

6868
// style attribute

0 commit comments

Comments
 (0)