@@ -53,11 +53,7 @@ type domProps = {
53
53
@as ("aria-autocomplete" ) ariaAutocomplete ?: [#inline | #list | #both | #none ],
54
54
/* https://www.w3.org/TR/wai-aria-1.1/#valuetype_tristate */
55
55
@as ("aria-checked" )
56
- ariaChecked ?: [
57
- | # "true"
58
- | # "false"
59
- | #mixed
60
- ],
56
+ ariaChecked ?: [# "true" | # "false" | #mixed ],
61
57
@as ("aria-expanded" )
62
58
ariaExpanded ?: bool ,
63
59
@as ("aria-haspopup" )
@@ -143,7 +139,7 @@ type domProps = {
143
139
contentEditable ?: bool ,
144
140
contextMenu ?: string ,
145
141
@as ("data-testid" ) dataTestId ?: string ,
146
- dir ?: string /* " ltr", " rtl" or " auto" */ ,
142
+ dir ?: [ # ltr | # rtl | # auto] ,
147
143
draggable ?: bool ,
148
144
hidden ?: bool ,
149
145
id ?: string ,
@@ -186,11 +182,11 @@ type domProps = {
186
182
defer ?: bool ,
187
183
disabled ?: bool ,
188
184
download ?: string /* should really be either a boolean, signifying presence, or a string */ ,
189
- encType ?: string /* "application/x-www-form-urlencoded", "multipart/form-data" or "text/plain" */ ,
185
+ encType ?: [ # "application/x-www-form-urlencoded" | # "multipart/form-data" | # "text/plain" ] ,
190
186
form ?: string ,
191
187
formAction ?: string /* uri */ ,
192
- formTarget ?: string /* " _blank", "_self", etc. */ ,
193
- formMethod ?: string /* " post", "get", " put" */ ,
188
+ formTarget ?: [ # _self | # _blank | # _parent | # _top ] ,
189
+ formMethod ?: [ #get | #head | # post | # put | #delete | #connect | #options | #trace | #patch ] ,
194
190
headers ?: string ,
195
191
height ?: string /* in html5 this can only be a number, but in html4 it can ba a percentage as well */ ,
196
192
high ?: int ,
@@ -199,7 +195,7 @@ type domProps = {
199
195
htmlFor ?: string /* substitute for "for" */ ,
200
196
httpEquiv ?: string /* has a fixed set of possible values */ ,
201
197
icon ?: string /* uri? */ ,
202
- inputMode ?: string /* "verbatim", "latin", " numeric", etc. */ ,
198
+ inputMode ?: [ #none | #text | #decimal | # numeric | #tel | #search | #email | #url ] ,
203
199
integrity ?: string ,
204
200
keyType ?: string ,
205
201
kind ?: string /* has a fixed set of possible values */ ,
@@ -213,7 +209,7 @@ type domProps = {
213
209
maxLength ?: int ,
214
210
media ?: string /* a valid media query */ ,
215
211
mediaGroup ?: string ,
216
- method ?: string /* " post" or " get" */ ,
212
+ method ?: [ # post | # get | #dialog ] ,
217
213
min ?: string ,
218
214
minLength ?: int ,
219
215
multiple ?: bool ,
0 commit comments