Skip to content

Commit

Permalink
fix: use Js.t explicitly now that it's abstract in Melange (#797)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro authored Oct 19, 2023
1 parent 3ab8747 commit 2499764
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ReactDOM.rei
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down
2 changes: 1 addition & 1 deletion test/ReactTestRenderer__test.re
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe("ReactTestRenderer", () => {

test("create returns ReactTestInstance", () => {
let component = ReactTestRenderer.create(<Tester />);
let keys = Js.Obj.keys(component);
let keys = Js.Obj.keys(Obj.magic(component): Js.t({..}));

expect(keys)
->toEqual(
Expand Down

0 comments on commit 2499764

Please sign in to comment.