Skip to content

Commit b81ea28

Browse files
committed
use '@bs.uncurry' for callbacks;
1 parent 7f6b217 commit b81ea28

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Tty.re

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,19 @@ module WriteStream = {
5252
include Stream.Writable.Impl;
5353
[@bs.send]
5454
external clearLineLeft:
55-
(t, [@bs.as {json|-1|json}] _, unit => unit, unit) => bool =
55+
(t, [@bs.as {json|-1|json}] _, [@bs.uncurry] (unit => unit), unit) =>
56+
bool =
5657
"clearLine";
5758
[@bs.send]
5859
external clearLineRight:
59-
(t, [@bs.as {json|1|json}] _, unit => unit, unit) => bool =
60+
(t, [@bs.as {json|1|json}] _, [@bs.uncurry] (unit => unit), unit) => bool =
6061
"clearLine";
6162
[@bs.send]
6263
external clearLine:
63-
(t, [@bs.as {json|0|json}] _, unit => unit, unit) => bool =
64+
(t, [@bs.as {json|0|json}] _, [@bs.uncurry] (unit => unit), unit) => bool =
6465
"clearLine";
6566
[@bs.send]
66-
external clearScreenDown: (t, unit => unit, unit) => bool =
67+
external clearScreenDown: (t, [@bs.uncurry] (unit => unit), unit) => bool =
6768
"clearScreenDown";
6869
[@bs.get] external columns: t => int = "columns";
6970
[@bs.send] external getColorDepth: t => int = "getColorDepth";

0 commit comments

Comments
 (0)