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:
parent
22f4385301
commit
d59ace37e4
1 changed files with 6 additions and 0 deletions
6
cli/tsc/dts/lib.deno.ns.d.ts
vendored
6
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -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>;
|
||||
|
|
Loading…
Reference in a new issue