Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReadableStream<T>

A interface that emulates the API shape of a node.js readable stream for use in desktop and web environments.

Type parameters

  • T

Hierarchy

Index

Methods

destroy

  • destroy(): void

on

  • on(event: "data", callback: (data: T) => void): void
  • on(event: "error", callback: (err: Error) => void): void
  • on(event: "end", callback: () => void): void

pause

  • pause(): void

removeListener

  • removeListener(event: string, callback: Function): void

resume

  • resume(): void