Interface UnderlyingSource<R>

interface UnderlyingSource<R> {
    cancel?: ((reason) => void | Promise<void>);
    expectedLength?: number | bigint;
    pull?: ((controller) => void | Promise<void>);
    start?: ((controller) => void | Promise<void>);
    type?: "";
}

Type Parameters

  • R = any

Properties

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

Type declaration

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

      • reason: any

      Returns void | Promise<void>

expectedLength?: number | bigint
pull?: ((controller) => void | Promise<void>)

Type declaration

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

Type declaration

type?: ""