File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // Duplicates of interface in lib.dom.ts.
2- // Duplicated here rather than referencing lib.dom.ts because doing so causes lib.dom.ts to be loaded for "test-all"
3- // Which in turn causes tests to pass that shouldn't pass.
4- //
5- // This interface is not, and should not be, exported.
6- interface Blob {
7- readonly size : number ;
8- readonly type : string ;
9- arrayBuffer ( ) : Promise < ArrayBuffer > ;
10- slice ( start ?: number , end ?: number , contentType ?: string ) : Blob ;
11- text ( ) : Promise < string > ;
12- }
131declare module 'stream/consumers' {
142 import { Readable } from 'node:stream' ;
3+ import { Blob } from 'buffer' ;
154 function buffer ( stream : NodeJS . ReadableStream | Readable | AsyncIterator < any > ) : Promise < Buffer > ;
165 function text ( stream : NodeJS . ReadableStream | Readable | AsyncIterator < any > ) : Promise < string > ;
176 function arrayBuffer ( stream : NodeJS . ReadableStream | Readable | AsyncIterator < any > ) : Promise < ArrayBuffer > ;
You can’t perform that action at this time.
0 commit comments