Skip to content

Commit 7f6b217

Browse files
committed
simplify some 'WriteStream' functions;
1 parent 84420b6 commit 7f6b217

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/Tty.re

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,23 @@ module WriteStream = {
4747
unit =
4848
"once";
4949
};
50+
5051
module Impl = {
5152
include Stream.Writable.Impl;
5253
[@bs.send]
5354
external clearLineLeft:
54-
(t, [@bs.as {json|-1|json}] _, ~callback: unit => unit=?, unit) => bool =
55+
(t, [@bs.as {json|-1|json}] _, unit => unit, unit) => bool =
5556
"clearLine";
5657
[@bs.send]
5758
external clearLineRight:
58-
(t, [@bs.as {json|1|json}] _, ~callback: unit => unit=?, unit) => bool =
59+
(t, [@bs.as {json|1|json}] _, unit => unit, unit) => bool =
5960
"clearLine";
6061
[@bs.send]
6162
external clearLine:
62-
(t, [@bs.as {json|0|json}] _, ~callback: unit => unit=?, unit) => bool =
63+
(t, [@bs.as {json|0|json}] _, unit => unit, unit) => bool =
6364
"clearLine";
6465
[@bs.send]
65-
external clearScreenDown: (t, ~callback: unit => unit=?, unit) => bool =
66+
external clearScreenDown: (t, unit => unit, unit) => bool =
6667
"clearScreenDown";
6768
[@bs.get] external columns: t => int = "columns";
6869
[@bs.send] external getColorDepth: t => int = "getColorDepth";
@@ -86,4 +87,5 @@ module WriteStream = {
8687
include Impl;
8788
};
8889

89-
[@bs.module "tty"] external isatty: Fs.fd => bool = "isatty";
90+
[@bs.module "tty"] external isatty: Fs.fd => bool = "isatty";
91+

0 commit comments

Comments
 (0)