Skip to content

Commit 05f80e8

Browse files
committed
revert enum to avoid breaking
1 parent 6b914fa commit 05f80e8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jscomp/others/jsxDOM.res

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ type domProps = {
139139
contentEditable?: bool,
140140
contextMenu?: string,
141141
@as("data-testid") dataTestId?: string,
142-
dir?: [#ltr | #rtl | #auto],
142+
dir?: string /* "ltr", "rtl" or "auto" */,
143143
draggable?: bool,
144144
hidden?: bool,
145145
id?: string,
@@ -182,11 +182,11 @@ type domProps = {
182182
defer?: bool,
183183
disabled?: bool,
184184
download?: string /* should really be either a boolean, signifying presence, or a string */,
185-
encType?: [#"application/x-www-form-urlencoded" | #"multipart/form-data" | #"text/plain"],
185+
encType?: string /* "application/x-www-form-urlencoded", "multipart/form-data" or "text/plain" */,
186186
form?: string,
187187
formAction?: string /* uri */,
188-
formTarget?: [#_self | #_blank | #_parent | #_top],
189-
formMethod?: [#get | #head | #post | #put | #delete | #connect | #options | #trace | #patch],
188+
formTarget?: string /* "_blank", "_self", etc. */,
189+
formMethod?: string /* "post", "get", "put" */,
190190
headers?: string,
191191
height?: string /* in html5 this can only be a number, but in html4 it can ba a percentage as well */,
192192
high?: int,
@@ -195,7 +195,7 @@ type domProps = {
195195
htmlFor?: string /* substitute for "for" */,
196196
httpEquiv?: string /* has a fixed set of possible values */,
197197
icon?: string /* uri? */,
198-
inputMode?: [#none | #text | #decimal | #numeric | #tel | #search | #email | #url],
198+
inputMode?: string /* "verbatim", "latin", "numeric", etc. */,
199199
integrity?: string,
200200
keyType?: string,
201201
kind?: string /* has a fixed set of possible values */,
@@ -209,7 +209,7 @@ type domProps = {
209209
maxLength?: int,
210210
media?: string /* a valid media query */,
211211
mediaGroup?: string,
212-
method?: [#post | #get | #dialog],
212+
method?: string /* "post" or "get" */,
213213
min?: string,
214214
minLength?: int,
215215
multiple?: bool,

0 commit comments

Comments
 (0)