Skip to content

Commit 584b000

Browse files
committed
Fix stdout, stdin and stderr types in ChildProcess
1 parent 46f8e25 commit 584b000

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ChildProcess.res

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ include Events
5454
@get external pid: t => int = "pid"
5555
@get external ref: t => unit = "ref"
5656
@get @return(nullable)
57-
external stderr: t => option<Stream.Writable.t<Buffer.t>> = "stderr"
57+
external stderr: t => option<Stream.Readable.t<Buffer.t>> = "stderr"
5858
@get @return(nullable)
59-
external stdin: t => option<Stream.Readable.t<Buffer.t>> = "stdin"
59+
external stdin: t => option<Stream.Writable.t<Buffer.t>> = "stdin"
6060
@get @return(nullable)
61-
external stdout: t => option<Stream.Writable.t<Buffer.t>> = "stdout"
61+
external stdout: t => option<Stream.Readable.t<Buffer.t>> = "stdout"
6262
@get external unref: t => unit = "unref"
6363

6464
type execOptions

0 commit comments

Comments
 (0)