diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-05-05 13:55:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-05 14:55:21 +0900 |
commit | a16a830e33a966cb2a8c8f52d1251771de7a0c80 (patch) | |
tree | a2aa5db6e2462a2ea85adcaa5e8191a865d83a4b /cli/dts/lib.deno.ns.d.ts | |
parent | 9c206545f7cd7db4d8c187d030058460797a22df (diff) |
docs(cli/dts): use one block per writeAll example (#10496)
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index ff28b3117..6afb1a0f3 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -989,13 +989,17 @@ declare namespace Deno { * // Example writing to stdout * const contentBytes = new TextEncoder().encode("Hello World"); * await Deno.writeAll(Deno.stdout, contentBytes); + * ``` * + * ```ts * // Example writing to file * const contentBytes = new TextEncoder().encode("Hello World"); * const file = await Deno.open('test.file', {write: true}); * await Deno.writeAll(file, contentBytes); * Deno.close(file.rid); + * ``` * + * ```ts * // Example writing to buffer * const contentBytes = new TextEncoder().encode("Hello World"); * const writer = new Deno.Buffer(); @@ -1015,13 +1019,17 @@ declare namespace Deno { * // Example writing to stdout * const contentBytes = new TextEncoder().encode("Hello World"); * Deno.writeAllSync(Deno.stdout, contentBytes); + * ``` * + * ```ts * // Example writing to file * const contentBytes = new TextEncoder().encode("Hello World"); * const file = Deno.openSync('test.file', {write: true}); * Deno.writeAllSync(file, contentBytes); * Deno.close(file.rid); + * ``` * + * ```ts * // Example writing to buffer * const contentBytes = new TextEncoder().encode("Hello World"); * const writer = new Deno.Buffer(); |