Skip to content

Commit 0372525

Browse files
committed
Fix 'unpipe' function; change type alias for type variable in 'pipe' function;
1 parent 7de76f9 commit 0372525

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Stream.re

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ module Readable = {
326326
external pause: (subtype('w, 'r, [> kind]) as 'rs) => 'rs = "pause";
327327
[@bs.send]
328328
external pipe:
329-
(subtype('a, 'b, [> kind]), subtype('b, 'c, [> writable] as 'wtype)) =>
330-
subtype('b, 'c, 'wtype) =
329+
(subtype('a, 'b, [> kind]), subtype('b, 'c, [> writable]) as 'ws) =>
330+
'ws =
331331
"pipe";
332332
[@bs.send]
333333
external push: (subtype('w, 'r, [> kind]), 'r) => unit = "push";
@@ -359,8 +359,8 @@ module Readable = {
359359
external resume: (subtype('w, 'r, [> kind]) as 'rs) => 'rs = "resume";
360360
[@bs.send]
361361
external unpipe:
362-
(subtype('w, 'r, [> kind]) as 'rs, subtype('w, 'r, [> writable])) =>
363-
'rs =
362+
(subtype('a, 'b, [> kind]), subtype('b, 'c, [> writable]) as 'ws) =>
363+
'ws =
364364
"unpipe";
365365
[@bs.send]
366366
external unshift: (subtype('w, 'r, [> kind]), 'r) => unit = "unshift";
@@ -535,8 +535,8 @@ module Writable = {
535535
include Common.Impl;
536536
include Events;
537537
[@bs.send] external cork: subtype('w, 'r, [> kind]) => unit = "cork";
538-
[@bs.send] external uncork: subtype('w, 'r, [> kind]) => unit = "uncork";
539538
[@bs.send] external end_: subtype('w, 'r, [> kind]) => unit = "end";
539+
[@bs.send] external uncork: subtype('w, 'r, [> kind]) => unit = "uncork";
540540
[@bs.send]
541541
external write: (subtype('w, 'r, [> kind]), 'w) => bool = "write";
542542
[@bs.send]

0 commit comments

Comments
 (0)