File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 61
61
const stream = new ReadableStream < string > ( { start : ( controller ) => controller . enqueue ( "hello" ) } ) ; // $ExpectType ReadableStream<string>
62
62
const compressionStream = new CompressionStream ( "gzip" ) ;
63
63
const encodedStream = stream . pipeThrough ( new TextEncoderStream ( ) ) ; // $ExpectType ReadableStream<Uint8Array> || ReadableStream<Uint8Array<ArrayBufferLike>>
64
- const compressedStream = encodedStream . pipeThrough ( compressionStream ) ; // $ExpectType ReadableStream<any>
65
- compressedStream . pipeThrough ( new DecompressionStream ( "gzip" ) ) ; // $ExpectType ReadableStream<any>
64
+ const compressedStream = encodedStream . pipeThrough ( compressionStream ) ; // $ExpectType ReadableStream<any> || ReadableStream<Uint8Array<ArrayBufferLike>>
65
+ compressedStream . pipeThrough ( new DecompressionStream ( "gzip" ) ) ; // $ExpectType ReadableStream<any> || ReadableStream<Uint8Array<ArrayBufferLike>>
66
66
void ( async ( ) => {
67
67
const reader = compressedStream . getReader ( ) ;
68
68
const readNext = async ( ) => {
You can’t perform that action at this time.
0 commit comments