mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
feat: allow passing a ReadableStream to Deno.writeFile/Deno.writeTextFile (#17329)
Closes #13229
This commit is contained in:
parent
692f9af14a
commit
a6b3910bdf
4 changed files with 70 additions and 14 deletions
4
cli/tsc/dts/lib.deno.ns.d.ts
vendored
4
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -3364,7 +3364,7 @@ declare namespace Deno {
|
|||
*/
|
||||
export function writeFile(
|
||||
path: string | URL,
|
||||
data: Uint8Array,
|
||||
data: Uint8Array | ReadableStream<Uint8Array>,
|
||||
options?: WriteFileOptions,
|
||||
): Promise<void>;
|
||||
|
||||
|
@ -3407,7 +3407,7 @@ declare namespace Deno {
|
|||
*/
|
||||
export function writeTextFile(
|
||||
path: string | URL,
|
||||
data: string,
|
||||
data: string | ReadableStream<string>,
|
||||
options?: WriteFileOptions,
|
||||
): Promise<void>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue