diff --git a/src/ReactDOM.rei b/src/ReactDOM.rei index aa17b7253..abc0a2f95 100644 --- a/src/ReactDOM.rei +++ b/src/ReactDOM.rei @@ -469,7 +469,7 @@ module Server: { type pipeableStream = { /* Using empty object instead of Node.stream since Melange don't provide a binding to node's Stream (https://nodejs.org/api/stream.html) */ - pipe: {.} => unit, + pipe: Js.t({.}) => unit, abort: unit => unit, }; diff --git a/test/ReactTestRenderer__test.re b/test/ReactTestRenderer__test.re index cb63da7e0..2324b1dd9 100644 --- a/test/ReactTestRenderer__test.re +++ b/test/ReactTestRenderer__test.re @@ -12,7 +12,7 @@ describe("ReactTestRenderer", () => { test("create returns ReactTestInstance", () => { let component = ReactTestRenderer.create(); - let keys = Js.Obj.keys(component); + let keys = Js.Obj.keys(Obj.magic(component): Js.t({..})); expect(keys) ->toEqual(