Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • StackEventEmitter

Implements

Index

Constructors

constructor

Properties

catch

Static defaultCatch

defaultCatch: StackEventEmitterCatch = defaultCatch

Static defaultMaxListeners

defaultMaxListeners: number = 10

Accessors

maxListeners

  • get maxListeners(): number
  • set maxListeners(value: number): void

Methods

addListener

  • addListener(event: Event.Change, callback: OnChange): void
  • addListener(event: Event.Push, callback: OnPush): void
  • addListener(event: Event.Pop, callback: OnPop): void
  • addListener(event: Event.Reset, callback: OnReset): void
  • addListener(event: Event.Replace, callback: OnReplace): void

emit

  • emit(event: Event.Pop, count: number, next: Stack, previous: Stack): void
  • emit(event: Event.Change | Event.Push | Event.Reset, data: IDataImmutable, next: Stack, previous: Stack): void
  • emit(event: Event.Replace, replacement: IDataImmutable, last: IDataImmutable, next: Stack, previous: Stack): void
  • Parameters

    • event: Event.Pop
    • count: number
    • next: Stack
    • previous: Stack

    Returns void

  • Parameters

    • event: Event.Change | Event.Push | Event.Reset
    • data: IDataImmutable
    • next: Stack
    • previous: Stack

    Returns void

  • Parameters

    • event: Event.Replace
    • replacement: IDataImmutable
    • last: IDataImmutable
    • next: Stack
    • previous: Stack

    Returns void

removeListener

  • removeListener(event: Event.Change, callback: OnChange): void
  • removeListener(event: Event.Push, callback: OnPush): void
  • removeListener(event: Event.Pop, callback: OnPop): void
  • removeListener(event: Event.Reset, callback: OnReset): void
  • removeListener(event: Event.Replace, callback: OnReplace): void