Skip to content

Commit 0334f13

Browse files
sudo97sudo97
and
sudo97
authored
fixed bindings (#44)
Co-authored-by: sudo97 <illia.mikhnevych@moovforge.com>
1 parent beffddf commit 0334f13

File tree

3 files changed

+32
-32
lines changed

3 files changed

+32
-32
lines changed

src/ReactDOMServer.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@module("react-dom/server.js")
1+
@module("react-dom/server")
22
external renderToString: React.element => string = "renderToString"
33

4-
@module("react-dom/server.js")
4+
@module("react-dom/server")
55
external renderToStaticMarkup: React.element => string = "renderToStaticMarkup"

src/ReactTestUtils.res

+16-16
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ type undefined = Js.undefined<unit>
22

33
let undefined: undefined = Js.Undefined.empty
44

5-
@module("react-dom/test-utils.js")
5+
@module("react-dom/test-utils")
66
external reactAct: ((. unit) => undefined) => unit = "act"
77

88
let act: (unit => unit) => unit = func => {
@@ -13,40 +13,40 @@ let act: (unit => unit) => unit = func => {
1313
reactAct(reactFunc)
1414
}
1515

16-
@module("react-dom/test-utils.js")
16+
@module("react-dom/test-utils")
1717
external reactActAsync: ((. unit) => Js.Promise.t<'a>) => Js.Promise.t<unit> = "act"
1818

1919
let actAsync = func => {
2020
let reactFunc = (. ()) => func()
2121
reactActAsync(reactFunc)
2222
}
2323

24-
@module("react-dom/test-utils.js")
24+
@module("react-dom/test-utils")
2525
external isElement: 'element => bool = "isElement"
2626

27-
@module("react-dom/test-utils.js")
27+
@module("react-dom/test-utils")
2828
external isElementOfType: ('element, React.component<'props>) => bool = "isElementOfType"
2929

30-
@module("react-dom/test-utils.js")
30+
@module("react-dom/test-utils")
3131
external isDOMComponent: 'element => bool = "isDOMComponent"
3232

33-
@module("react-dom/test-utils.js")
33+
@module("react-dom/test-utils")
3434
external isCompositeComponent: 'element => bool = "isCompositeComponent"
3535

36-
@module("react-dom/test-utils.js")
36+
@module("react-dom/test-utils")
3737
external isCompositeComponentWithType: ('element, React.component<'props>) => bool =
3838
"isCompositeComponentWithType"
3939

4040
module Simulate = {
41-
@module("react-dom/test-utils.js") @scope("Simulate")
41+
@module("react-dom/test-utils") @scope("Simulate")
4242
external click: Dom.element => unit = "click"
43-
@module("react-dom/test-utils.js") @scope("Simulate")
43+
@module("react-dom/test-utils") @scope("Simulate")
4444
external clickWithEvent: (Dom.element, 'event) => unit = "click"
45-
@module("react-dom/test-utils.js") @scope("Simulate")
45+
@module("react-dom/test-utils") @scope("Simulate")
4646
external change: Dom.element => unit = "change"
47-
@module("react-dom/test-utils.js") @scope("Simulate")
47+
@module("react-dom/test-utils") @scope("Simulate")
4848
external blur: Dom.element => unit = "blur"
49-
@module("react-dom/test-utils.js") @scope("Simulate")
49+
@module("react-dom/test-utils") @scope("Simulate")
5050
external changeWithEvent: (Dom.element, 'event) => unit = "change"
5151
let changeWithValue = (element, value) => {
5252
let event = {
@@ -64,13 +64,13 @@ module Simulate = {
6464
}
6565
changeWithEvent(element, event)
6666
}
67-
@module("react-dom/test-utils.js") @scope("Simulate")
67+
@module("react-dom/test-utils") @scope("Simulate")
6868
external canPlay: Dom.element => unit = "canPlay"
69-
@module("react-dom/test-utils.js") @scope("Simulate")
69+
@module("react-dom/test-utils") @scope("Simulate")
7070
external timeUpdate: Dom.element => unit = "timeUpdate"
71-
@module("react-dom/test-utils.js") @scope("Simulate")
71+
@module("react-dom/test-utils") @scope("Simulate")
7272
external ended: Dom.element => unit = "ended"
73-
@module("react-dom/test-utils.js") @scope("Simulate")
73+
@module("react-dom/test-utils") @scope("Simulate")
7474
external focus: Dom.element => unit = "focus"
7575
}
7676

src/ReactTestUtils.resi

+14-14
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,42 @@ let act: (unit => unit) => unit
22

33
let actAsync: (unit => Js.Promise.t<'a>) => Js.Promise.t<unit>
44

5-
@module("react-dom/test-utils.js")
5+
@module("react-dom/test-utils")
66
external isElement: 'element => bool = "isElement"
77

8-
@module("react-dom/test-utils.js")
8+
@module("react-dom/test-utils")
99
external isElementOfType: ('element, React.component<'props>) => bool = "isElementOfType"
1010

11-
@module("react-dom/test-utils.js")
11+
@module("react-dom/test-utils")
1212
external isDOMComponent: 'element => bool = "isDOMComponent"
1313

14-
@module("react-dom/test-utils.js")
14+
@module("react-dom/test-utils")
1515
external isCompositeComponent: 'element => bool = "isCompositeComponent"
1616

17-
@module("react-dom/test-utils.js")
17+
@module("react-dom/test-utils")
1818
external isCompositeComponentWithType: ('element, React.component<'props>) => bool =
1919
"isCompositeComponentWithType"
2020

2121
module Simulate: {
22-
@module("react-dom/test-utils.js") @scope("Simulate")
22+
@module("react-dom/test-utils") @scope("Simulate")
2323
external click: Dom.element => unit = "click"
24-
@module("react-dom/test-utils.js") @scope("Simulate")
24+
@module("react-dom/test-utils") @scope("Simulate")
2525
external clickWithEvent: (Dom.element, 'event) => unit = "click"
26-
@module("react-dom/test-utils.js") @scope("Simulate")
26+
@module("react-dom/test-utils") @scope("Simulate")
2727
external change: Dom.element => unit = "change"
28-
@module("react-dom/test-utils.js") @scope("Simulate")
28+
@module("react-dom/test-utils") @scope("Simulate")
2929
external blur: Dom.element => unit = "blur"
30-
@module("react-dom/test-utils.js") @scope("Simulate")
30+
@module("react-dom/test-utils") @scope("Simulate")
3131
external changeWithEvent: (Dom.element, 'event) => unit = "change"
3232
let changeWithValue: (Dom.element, string) => unit
3333
let changeWithChecked: (Dom.element, bool) => unit
34-
@module("react-dom/test-utils.js") @scope("Simulate")
34+
@module("react-dom/test-utils") @scope("Simulate")
3535
external canPlay: Dom.element => unit = "canPlay"
36-
@module("react-dom/test-utils.js") @scope("Simulate")
36+
@module("react-dom/test-utils") @scope("Simulate")
3737
external timeUpdate: Dom.element => unit = "timeUpdate"
38-
@module("react-dom/test-utils.js") @scope("Simulate")
38+
@module("react-dom/test-utils") @scope("Simulate")
3939
external ended: Dom.element => unit = "ended"
40-
@module("react-dom/test-utils.js") @scope("Simulate")
40+
@module("react-dom/test-utils") @scope("Simulate")
4141
external focus: Dom.element => unit = "focus"
4242
}
4343

0 commit comments

Comments
 (0)