From 249976463700c15fe9768c591840ddb8cc468acb Mon Sep 17 00:00:00 2001 From: Antonio Nuno Monteiro Date: Thu, 19 Oct 2023 15:36:49 -0700 Subject: [PATCH] fix: use `Js.t` explicitly now that it's abstract in Melange (#797) --- src/ReactDOM.rei | 2 +- test/ReactTestRenderer__test.re | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(