1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -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 Levente Kurusa
parent 22f4385301
commit d59ace37e4
No known key found for this signature in database
GPG key ID: 9F72F3C05BA137C4

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