package js.html; /** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. **/ typedef IReadableStream = { final locked : Bool; function cancel(?reason:Dynamic):js.lib.Promise; @:overload(function():ReadableStreamDefaultReader { }) function getReader(options:{ var mode : String; }):ReadableStreamBYOBReader; function pipeThrough(__0:{ var writable : WritableStream; var readable : ReadableStream; }, ?options:PipeOptions):ReadableStream; function pipeTo(dest:WritableStream, ?options:PipeOptions):js.lib.Promise; function tee():ts.Tuple2, ReadableStream>; };