Skip to content

Commit ec47937

Browse files
committed
Fixed type of encoding in stream write
1 parent 2f93700 commit ec47937

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/js/test/atomic/Stream.test.bs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Stream.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,13 @@ module Writable = {
240240
~writev: @this (
241241
objStream<'w>,
242242
~data: array<chunk<'w>>,
243-
~encoding: StringEncoding.t,
243+
~encoding: Js.null<StringEncoding.t>,
244244
~callback: (~error: option<Js.Exn.t>) => unit,
245245
) => unit=?,
246246
~write: @this (
247247
objStream<'w>,
248248
~data: 'w,
249-
~encoding: StringEncoding.t,
249+
~encoding: Js.null<StringEncoding.t>,
250250
~callback: (~error: option<Js.Exn.t>) => unit,
251251
) => unit,
252252
unit,

test/atomic/Stream.test.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ zoraBlock("Stream.Writable", t => {
8686
Js.typeof(cb),
8787
))
8888
}
89-
t->equal(actual, Some(("Writable", "number", StringEncoding.utf8, "function")), "")
89+
t->equal(actual, Some(("Writable", "number", Js.null, "function")), "")
9090

9191
resolve(. ())
9292
},

0 commit comments

Comments
 (0)