We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96f9b55 commit 012974eCopy full SHA for 012974e
src/ReactDOMTestUtils.re
@@ -84,7 +84,7 @@ module Simulate = {
84
85
external document: Dom.document = "document";
86
87
-[@mel.send]
+[@mel.return nullable] [@mel.send]
88
external querySelector: (Dom.element, string) => option(Dom.element) =
89
"querySelector";
90
@@ -94,7 +94,10 @@ external querySelectorAll:
94
"querySelectorAll";
95
96
[@mel.get] external textContent: Dom.element => string = "textContent";
97
-[@mel.get] external body: Dom.document => option(Dom.element) = "body";
+
98
+[@mel.return nullable] [@mel.get]
99
+external body: Dom.document => option(Dom.element) = "body";
100
101
[@mel.send]
102
external createElement: (Dom.document, string) => Dom.element =
103
"createElement";
0 commit comments