chromium/third_party/blink/renderer/core/streams/transform_stream_default_controller.idl

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://streams.spec.whatwg.org/#ts-default-controller-class-definition
[
    Exposed=(Window,Worker,Worklet)
]interface TransformStreamDefaultController {
    readonly attribute unrestricted double? desiredSize;
    [CallWith=ScriptState, RaisesException] void enqueue(
        optional any chunk);
    [CallWith=ScriptState] void error(optional any reason);
    [CallWith=ScriptState] void terminate();
};