Interface Transformer<I, O>

interface Transformer<I, O> {
    cancel?: ((reason) => void | Promise<void>);
    expectedLength?: number;
    flush?: ((controller) => void | Promise<void>);
    readableType?: string;
    start?: ((controller) => void | Promise<void>);
    transform?: ((chunk, controller) => void | Promise<void>);
    writableType?: string;
}

Type Parameters

  • I = any
  • O = any

Properties

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

Type declaration

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

      • reason: any

      Returns void | Promise<void>

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

Type declaration

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

Type declaration

transform?: ((chunk, controller) => void | Promise<void>)

Type declaration

writableType?: string