/* * Copyright (c) 2023, Matthew Olsson * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Web::Streams { // https://streams.spec.whatwg.org/#dictdef-underlyingsink struct UnderlyingSink { JS::Handle start; JS::Handle write; JS::Handle close; JS::Handle abort; Optional type; static JS::ThrowCompletionOr from_value(JS::VM&, JS::Value); }; }