desiredSize

external val desiredSize: Double?(source)

The desiredSize read-only property of the ReadableByteStreamController interface returns the number of bytes required to fill the stream's internal queue to its "desired size".

MDN Reference