@shopify/oxygen-workers-types
    Preparing search index...

    Interface UnderlyingSink<W>

    interface UnderlyingSink<W = any> {
        abort?: (reason: any) => void | Promise<void>;
        close?: () => void | Promise<void>;
        start?: (
            controller: WritableStreamDefaultController,
        ) => void | Promise<void>;
        type?: string;
        write?: (
            chunk: W,
            controller: WritableStreamDefaultController,
        ) => void | Promise<void>;
    }

    Type Parameters

    • W = any
    Index

    Properties

    abort?: (reason: any) => void | Promise<void>
    close?: () => void | Promise<void>
    start?: (controller: WritableStreamDefaultController) => void | Promise<void>
    type?: string
    write?: (
        chunk: W,
        controller: WritableStreamDefaultController,
    ) => void | Promise<void>