Skip to content

Commit e16fb12

Browse files
fix: change autofocus type from string to boolean (#407)
* fix: change autofocus type from string to boolean Signed-off-by: Lucas Cândido <[email protected]> * Create rare-panthers-explode.md Signed-off-by: Arthur Fiorette <[email protected]> --------- Signed-off-by: Lucas Cândido <[email protected]> Signed-off-by: Arthur Fiorette <[email protected]> Co-authored-by: Arthur Fiorette <[email protected]>
1 parent 6008e56 commit e16fb12

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@kitajs/html": patch
3+
---
4+
5+
Change autofocus type from string to boolean

packages/html/jsx.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ declare namespace JSX {
190190

191191
interface HtmlButtonTag extends HtmlTag {
192192
action?: undefined | string;
193-
autofocus?: undefined | string;
193+
autofocus?: undefined | boolean;
194194
disabled?: undefined | boolean;
195195
enctype?: undefined | string;
196196
form?: undefined | string;
@@ -302,7 +302,7 @@ declare namespace JSX {
302302
action?: undefined | string;
303303
alt?: undefined | string;
304304
autocomplete?: undefined | string;
305-
autofocus?: undefined | string;
305+
autofocus?: undefined | boolean;
306306
checked?: undefined | boolean;
307307
disabled?: undefined | boolean;
308308
enctype?: undefined | string;
@@ -336,7 +336,7 @@ declare namespace JSX {
336336
}
337337

338338
interface KeygenTag extends HtmlTag {
339-
autofocus?: undefined | string;
339+
autofocus?: undefined | boolean;
340340
challenge?: undefined | string;
341341
disabled?: undefined | boolean;
342342
form?: undefined | string;
@@ -517,7 +517,7 @@ declare namespace JSX {
517517
}
518518

519519
interface HtmlTextAreaTag extends HtmlTag {
520-
autofocus?: undefined | string;
520+
autofocus?: undefined | boolean;
521521
cols?: undefined | string;
522522
dirname?: undefined | string;
523523
disabled?: undefined | boolean;

0 commit comments

Comments
 (0)