fix(dts): specify the underlying buffer type in more places (#30640)

This commit is contained in:
ud2 2025-09-08 21:05:09 +08:00 committed by GitHub
parent e02e4c2042
commit a3a904da14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 35 additions and 28 deletions

View file

@ -3835,7 +3835,7 @@ declare namespace Deno {
* Reads the stream to completion. It returns a promise that resolves with
* a `Uint8Array`.
*/
bytes(): Promise<Uint8Array>;
bytes(): Promise<Uint8Array<ArrayBuffer>>;
/**
* Reads the stream to completion. It returns a promise that resolves with
* the result of parsing the body text as JSON.