/* * 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 { JS::Handle start; JS::Handle pull; JS::Handle cancel; Optional type; Optional auto_allocate_chunk_size; static JS::ThrowCompletionOr from_value(JS::VM&, JS::Value); }; }