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

docs: update Deno.Writer docstring (#18987)

Closes
https://github.com/denoland/deno/issues/18985#issuecomment-1534493623
This commit is contained in:
Bartek Iwańczuk 2023-05-04 14:37:45 +02:00 committed by GitHub
parent 95e209a0e4
commit 8382adaf7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<number>;