@@ -843,7 +843,7 @@ declare class TextEncoder {
843
843
* UTF-8 encodes the `input` string and returns a `Uint8Array` containing the encoded bytes.
844
844
* @param [input='an empty string'] The text to encode.
845
845
*/
846
- encode ( input ?: string ) : Uint8Array ;
846
+ encode ( input ?: string ) : Uint8Array < ArrayBuffer > ;
847
847
// /**
848
848
// * UTF-8 encodes the `src` string to the `dest` Uint8Array and returns an object
849
849
// * containing the read Unicode code units and written UTF-8 bytes.
@@ -998,7 +998,7 @@ declare interface Fastly {
998
998
* @hidden
999
999
* @experimental
1000
1000
*/
1001
- includeBytes ( path : string ) : Uint8Array ;
1001
+ includeBytes ( path : string ) : Uint8Array < ArrayBuffer > ;
1002
1002
}
1003
1003
1004
1004
/**
@@ -1055,15 +1055,15 @@ declare class CompressionStream {
1055
1055
* console.log(stream.readable instanceof ReadableStream); // true
1056
1056
* ```
1057
1057
*/
1058
- readonly readable : ReadableStream < Uint8Array > ;
1058
+ readonly readable : ReadableStream < Uint8Array < ArrayBuffer > > ;
1059
1059
/**
1060
1060
* @example
1061
1061
* ```js
1062
1062
* let stream = new CompressionStream("gzip");
1063
1063
* console.log(stream.writable instanceof WritableStream); // true
1064
1064
* ```
1065
1065
*/
1066
- readonly writable : WritableStream < Uint8Array > ;
1066
+ readonly writable : WritableStream < Uint8Array < ArrayBuffer > > ;
1067
1067
}
1068
1068
1069
1069
/**
@@ -1110,15 +1110,15 @@ declare class DecompressionStream {
1110
1110
* console.log(stream.readable instanceof ReadableStream); // true
1111
1111
* ```
1112
1112
*/
1113
- readonly readable : ReadableStream < Uint8Array > ;
1113
+ readonly readable : ReadableStream < Uint8Array < ArrayBuffer > > ;
1114
1114
/**
1115
1115
* @example
1116
1116
* ```js
1117
1117
* let stream = new DecompressionStream("gzip");
1118
1118
* console.log(stream.writable instanceof WritableStream); // true
1119
1119
* ```
1120
1120
*/
1121
- readonly writable : WritableStream < Uint8Array > ;
1121
+ readonly writable : WritableStream < Uint8Array < ArrayBuffer > > ;
1122
1122
}
1123
1123
1124
1124
// Note: the contents below here are, partially modified, copies of content from TypeScript's
@@ -1175,7 +1175,7 @@ interface Blob {
1175
1175
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
1176
1176
slice ( start ?: number , end ?: number , contentType ?: string ) : Blob ;
1177
1177
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
1178
- stream ( ) : ReadableStream < Uint8Array > ;
1178
+ stream ( ) : ReadableStream < Uint8Array < ArrayBuffer > > ;
1179
1179
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
1180
1180
text ( ) : Promise < string > ;
1181
1181
}
@@ -1265,7 +1265,7 @@ declare type XMLHttpRequestBodyInit =
1265
1265
* @group Fetch API
1266
1266
*/
1267
1267
declare interface Body {
1268
- readonly body : ReadableStream < Uint8Array > | null ;
1268
+ readonly body : ReadableStream < Uint8Array < ArrayBuffer > > | null ;
1269
1269
readonly bodyUsed : boolean ;
1270
1270
arrayBuffer ( ) : Promise < ArrayBuffer > ;
1271
1271
blob ( ) : Promise < Blob > ;
0 commit comments