Skip to content

Commit 89db71a

Browse files
committed
add missing optional
1 parent 532c88e commit 89db71a

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

jscomp/others/jsxDOM.res

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,25 @@ type domProps = {
3434
/* accessibility */
3535
/* https://www.w3.org/TR/wai-aria-1.1/ */
3636
/* https://accessibilityresources.org/<aria-tag> is a great resource for these */
37-
@as("aria-current") ariaCurrent: [#page | #step | #location | #date | #time | #"true" | #"false"],
37+
@as("aria-current")
38+
ariaCurrent?: [#page | #step | #location | #date | #time | #"true" | #"false"],
3839
@as("aria-details")
3940
ariaDetails?: string,
4041
@as("aria-disabled")
4142
ariaDisabled?: bool,
4243
@as("aria-hidden")
4344
ariaHidden?: bool,
44-
@as("aria-invalid") ariaInvalid: [#grammar | #spelling | #"true" | #"false"],
45+
@as("aria-invalid") ariaInvalid?: [#grammar | #spelling | #"true" | #"false"],
4546
@as("aria-keyshortcuts")
4647
ariaKeyshortcuts?: string,
4748
@as("aria-label")
4849
ariaLabel?: string,
4950
@as("aria-roledescription")
5051
ariaRoledescription?: string,
5152
/* Widget Attributes */
52-
@as("aria-autocomplete") ariaAutocomplete: [#inline | #list | #both | #none],
53+
@as("aria-autocomplete") ariaAutocomplete?: [#inline | #list | #both | #none],
5354
@as("aria-checked")
54-
ariaChecked: [
55+
ariaChecked?: [
5556
| #"true"
5657
| #"false"
5758
| #mixed
@@ -60,7 +61,7 @@ type domProps = {
6061
@as("aria-expanded")
6162
ariaExpanded?: bool,
6263
@as("aria-haspopup")
63-
ariaHaspopup: [#menu | #listbox | #tree | #grid | #dialog | #"true" | #"false"],
64+
ariaHaspopup?: [#menu | #listbox | #tree | #grid | #dialog | #"true" | #"false"],
6465
@as("aria-level")
6566
ariaLevel?: int,
6667
@as("aria-modal")
@@ -69,11 +70,11 @@ type domProps = {
6970
ariaMultiline?: bool,
7071
@as("aria-multiselectable")
7172
ariaMultiselectable?: bool,
72-
@as("aria-orientation") ariaOrientation: [#horizontal | #vertical | #undefined],
73+
@as("aria-orientation") ariaOrientation?: [#horizontal | #vertical | #undefined],
7374
@as("aria-placeholder")
7475
ariaPlaceholder?: string,
7576
@as("aria-pressed")
76-
ariaPressed: [
77+
ariaPressed?: [
7778
| #"true"
7879
| #"false"
7980
| #mixed
@@ -100,11 +101,11 @@ type domProps = {
100101
ariaAtomic?: bool,
101102
@as("aria-busy")
102103
ariaBusy?: bool,
103-
@as("aria-live") ariaLive: [#off | #polite | #assertive | #rude],
104+
@as("aria-live") ariaLive?: [#off | #polite | #assertive | #rude],
104105
@as("aria-relevant")
105106
ariaRelevant?: string,
106107
/* Drag-and-Drop Attributes */
107-
@as("aria-dropeffect") ariaDropeffect: [#copy | #move | #link | #execute | #popup | #none],
108+
@as("aria-dropeffect") ariaDropeffect?: [#copy | #move | #link | #execute | #popup | #none],
108109
@as("aria-grabbed")
109110
ariaGrabbed?: bool,
110111
/* Relationship Attributes */

0 commit comments

Comments
 (0)