[whatwg/streams] Why is `size` just a function? (Issue #1226)

Both [`ByteLengthQueuingStrategy`](https://streams.spec.whatwg.org/commit-snapshots/9538b77788be6ff7304fcf582823e3d56463ef2a/#bytelengthqueuingstrategy) and [`CountQueuingStrategy`](https://streams.spec.whatwg.org/commit-snapshots/9538b77788be6ff7304fcf582823e3d56463ef2a/#countqueuingstrategy) are defined as having a `readonly attribute Function size`. However, the definition for [`QueuingStrategy`](https://streams.spec.whatwg.org/commit-snapshots/9538b77788be6ff7304fcf582823e3d56463ef2a/#dictdef-queuingstrategy) has a specific type for this field: [`QueuingStrategySize`](https://streams.spec.whatwg.org/commit-snapshots/9538b77788be6ff7304fcf582823e3d56463ef2a/#callbackdef-queuingstrategysize). Is there a reason these two interfaces do not use the more specific type?


-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1226
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/issues/1226@github.com>

Received on Wednesday, 30 March 2022 19:40:41 UTC