Interface UnderlyingSink<W>

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

Type Parameters

  • W = any

Properties

abort?: ((reason) => void | Promise<void>)

Type declaration

    • (reason): void | Promise<void>
    • Parameters

      • reason: any

      Returns void | Promise<void>

close?: (() => void | Promise<void>)

Type declaration

    • (): void | Promise<void>
    • Returns void | Promise<void>

start?: ((controller) => void | Promise<void>)

Type declaration

type?: string
write?: ((chunk, controller) => void | Promise<void>)

Type declaration