@@ -843,7 +843,7 @@ declare class TextEncoder {
843843 * UTF-8 encodes the `input` string and returns a `Uint8Array` containing the encoded bytes.
844844 * @param [input='an empty string'] The text to encode.
845845 */
846- encode ( input ?: string ) : Uint8Array ;
846+ encode ( input ?: string ) : Uint8Array < ArrayBuffer > ;
847847 // /**
848848 // * UTF-8 encodes the `src` string to the `dest` Uint8Array and returns an object
849849 // * containing the read Unicode code units and written UTF-8 bytes.
@@ -998,7 +998,7 @@ declare interface Fastly {
998998 * @hidden
999999 * @experimental
10001000 */
1001- includeBytes ( path : string ) : Uint8Array ;
1001+ includeBytes ( path : string ) : Uint8Array < ArrayBuffer > ;
10021002}
10031003
10041004/**
@@ -1055,15 +1055,15 @@ declare class CompressionStream {
10551055 * console.log(stream.readable instanceof ReadableStream); // true
10561056 * ```
10571057 */
1058- readonly readable : ReadableStream < Uint8Array > ;
1058+ readonly readable : ReadableStream < Uint8Array < ArrayBuffer > > ;
10591059 /**
10601060 * @example
10611061 * ```js
10621062 * let stream = new CompressionStream("gzip");
10631063 * console.log(stream.writable instanceof WritableStream); // true
10641064 * ```
10651065 */
1066- readonly writable : WritableStream < Uint8Array > ;
1066+ readonly writable : WritableStream < Uint8Array < ArrayBuffer > > ;
10671067}
10681068
10691069/**
@@ -1110,15 +1110,15 @@ declare class DecompressionStream {
11101110 * console.log(stream.readable instanceof ReadableStream); // true
11111111 * ```
11121112 */
1113- readonly readable : ReadableStream < Uint8Array > ;
1113+ readonly readable : ReadableStream < Uint8Array < ArrayBuffer > > ;
11141114 /**
11151115 * @example
11161116 * ```js
11171117 * let stream = new DecompressionStream("gzip");
11181118 * console.log(stream.writable instanceof WritableStream); // true
11191119 * ```
11201120 */
1121- readonly writable : WritableStream < Uint8Array > ;
1121+ readonly writable : WritableStream < Uint8Array < ArrayBuffer > > ;
11221122}
11231123
11241124// Note: the contents below here are, partially modified, copies of content from TypeScript's
@@ -1175,7 +1175,7 @@ interface Blob {
11751175 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
11761176 slice ( start ?: number , end ?: number , contentType ?: string ) : Blob ;
11771177 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
1178- stream ( ) : ReadableStream < Uint8Array > ;
1178+ stream ( ) : ReadableStream < Uint8Array < ArrayBuffer > > ;
11791179 /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
11801180 text ( ) : Promise < string > ;
11811181}
@@ -1265,7 +1265,7 @@ declare type XMLHttpRequestBodyInit =
12651265 * @group Fetch API
12661266 */
12671267declare interface Body {
1268- readonly body : ReadableStream < Uint8Array > | null ;
1268+ readonly body : ReadableStream < Uint8Array < ArrayBuffer > > | null ;
12691269 readonly bodyUsed : boolean ;
12701270 arrayBuffer ( ) : Promise < ArrayBuffer > ;
12711271 blob ( ) : Promise < Blob > ;
0 commit comments