Skip to content

Commit 27d84ff

Browse files
committed
add more bindings to std/stream
1 parent 80eb41b commit 27d84ff

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/RescriptDeno_Std_Stream.res

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@
1212

1313
// @module("https://deno.land/std/streams/mod.ts")
1414

15+
@module("https://deno.land/std/streams/mod.ts")
16+
external readAll: module(RescriptDeno_IO.Reader) => Promise.t<Js.TypedArray2.Uint8Array.t> =
17+
"readAll"
18+
19+
@module("https://deno.land/std/streams/mod.ts")
20+
external readAllSync: module(RescriptDeno_IO.ReaderSync) => Js.TypedArray2.Uint8Array.t =
21+
"readAllSync"
22+
23+
@module("https://deno.land/std/streams/mod.ts")
24+
external writeAll: module(RescriptDeno_IO.Writer) => Promise.t<unit> = "writeAll"
25+
26+
@module("https://deno.land/std/streams/mod.ts")
27+
external writeAllSync: module(RescriptDeno_IO.WriterSync) => unit = "writeAllSync"
28+
1529
type copyOptions
1630

1731
%%private(

0 commit comments

Comments
 (0)