From 8382adaf7dcc9c813a51552cca196121c02a650e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 4 May 2023 14:37:45 +0200 Subject: [PATCH] docs: update Deno.Writer docstring (#18987) Closes https://github.com/denoland/deno/issues/18985#issuecomment-1534493623 --- cli/tsc/dts/lib.deno.ns.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index 4b8dbb7fdc..395f8c667d 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -1488,6 +1488,12 @@ declare namespace Deno { * would resolve to `n` < `p.byteLength`. `write()` must not modify the * slice data, even temporarily. * + * This function is one of the lowest + * level APIs and most users should not work with this directly, but rather use + * [`writeAll()`](https://deno.land/std/streams/write_all.ts?s=writeAll) from + * [`std/streams/write_all.ts`](https://deno.land/std/streams/write_all.ts) + * instead. + * * Implementations should not retain a reference to `p`. */ write(p: Uint8Array): Promise;