Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Subscription<T>

Type parameters

  • T

Hierarchy

  • Subscription

Implemented by

Index

Methods

Methods

close

  • close(): void

off

  • off(type: "error", cb: (error: Error) => void): void
  • off(type: "data", cb: (data: T) => void): void
  • off(type: "close", cb: () => void): void

on

  • on(type: "error", cb: (error: Error) => void): void
  • on(type: "data", cb: (data: T) => void): void
  • on(type: "close", cb: () => void): void

Generated using TypeDoc