/* * Copyright (c) 2023, Matthew Olsson * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include namespace Web::Streams { enum class ReadableStreamType { Bytes }; struct UnderlyingSource { GC::Root start; GC::Root pull; GC::Root cancel; Optional type; Optional auto_allocate_chunk_size; static JS::ThrowCompletionOr from_value(JS::VM&, JS::Value); }; }