Permalink
Browse files

Fix Mouse.move options parameter

Hmm... This doesn't take a dict.
  • Loading branch information...
zploskey committed Jun 8, 2018
1 parent 64f8105 commit 9b7c55c87c9a83cf0ceb6dadb7188629f92db742
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Mouse.re
@@ -13,8 +13,6 @@ type mousePressOptions = {
"clickCount": int,
};

type mouseMovements = Js.Dict.t(int);

[@bs.send.pipe: t]
external click :
(~x: float, ~y: float, ~options: Click.clickOptions=?, unit) =>
@@ -25,9 +23,11 @@ external click :
external down : (~options: mousePressOptions=?, unit) => Js.Promise.t(unit) =
"";

type moveOptions = {. "steps": int};

[@bs.send.pipe: t]
external move :
(~x: float, ~y: float, ~movements: mouseMovements=?, unit) =>
(~x: float, ~y: float, ~options: moveOptions=?, unit) =>
Js.Promise.t(unit) =
"";

0 comments on commit 9b7c55c

Please sign in to comment.