From 787e794027bbb2f13980db483f83f7a05fed3078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 30 May 2022 16:42:31 +0200 Subject: chore: update deprecated APIs docs (#14756) --- cli/dts/lib.deno.ns.d.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'cli/dts/lib.deno.ns.d.ts') diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index 019ab240b..ff1636d4d 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -621,8 +621,8 @@ declare namespace Deno { * * Implementations should not retain a reference to `p`. * - * Use iter() from https://deno.land/std/io/util.ts to turn a Reader into an - * AsyncIterator. + * Use `itereateReader` from from https://deno.land/std/streams/conversion.ts to + * turn a Reader into an AsyncIterator. */ read(p: Uint8Array): Promise; } @@ -646,8 +646,8 @@ declare namespace Deno { * * Implementations should not retain a reference to `p`. * - * Use iterSync() from https://deno.land/std/io/util.ts to turn a ReaderSync - * into an Iterator. + * Use `iterateReaderSync()` from from https://deno.land/std/streams/conversion.ts + * to turn a ReaderSync into an Iterator. */ readSync(p: Uint8Array): number | null; } @@ -883,7 +883,8 @@ declare namespace Deno { * not indicate EOF. * * This function is one of the lowest level APIs and most users should not - * work with this directly, but rather use Deno.readAllSync() instead. + * work with this directly, but rather use + * `readAllSync()` from https://deno.land/std/streams/conversion.ts instead. * * **It is not guaranteed that the full buffer will be read in a single call.** * @@ -907,7 +908,8 @@ declare namespace Deno { * not indicate EOF. * * This function is one of the lowest level APIs and most users should not - * work with this directly, but rather use Deno.readAll() instead. + * work with this directly, but rather use + * `readAll()` from https://deno.land/std/streams/conversion.ts instead. * * **It is not guaranteed that the full buffer will be read in a single call.** * @@ -946,7 +948,7 @@ declare namespace Deno { * * Resolves to the number of bytes written. This function is one of the lowest * level APIs and most users should not work with this directly, but rather use - * Deno.writeAll() instead. + * `writeAll()` from https://deno.land/std/streams/conversion.ts instead. * * **It is not guaranteed that the full buffer will be written in a single * call.** -- cgit v1.2.3