1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

chore: update deprecated APIs docs (#14756)

This commit is contained in:
Bartek Iwańczuk 2022-05-30 16:42:31 +02:00 committed by GitHub
parent 0cfdf5cede
commit 787e794027
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<number | null>;
}
@ -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.**