File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ declare namespace intoStream {
1010 | Iterable < Buffer | string > ;
1111
1212 type InputObject =
13- | { [ key : string ] : any }
14- | Iterable < { [ key : string ] : any } > ;
13+ | object
14+ | Iterable < object > ;
1515}
1616
1717declare const intoStream : {
Original file line number Diff line number Diff line change @@ -25,10 +25,13 @@ intoStream(Promise.resolve(new Uint8Array(Buffer.from('unicorn').buffer))).pipe(
2525const object = { foo : true } ;
2626const objectArray = new Set ( [ object , { bar : true } ] ) ;
2727const objectIterable = new Set ( objectArray ) ;
28+ const arrayOfArrays = [ [ object ] ] ;
2829
2930intoStream . object ( object ) . pipe ( process . stdout ) ;
3031intoStream . object ( objectArray ) . pipe ( process . stdout ) ;
3132intoStream . object ( objectIterable ) . pipe ( process . stdout ) ;
33+ intoStream . object ( arrayOfArrays ) . pipe ( process . stdout ) ;
3234intoStream . object ( Promise . resolve ( object ) ) . pipe ( process . stdout ) ;
3335intoStream . object ( Promise . resolve ( objectArray ) ) . pipe ( process . stdout ) ;
3436intoStream . object ( Promise . resolve ( objectIterable ) ) . pipe ( process . stdout ) ;
37+ intoStream . object ( Promise . resolve ( arrayOfArrays ) ) . pipe ( process . stdout ) ;
You can’t perform that action at this time.
0 commit comments