Options
All
  • Public
  • Public/Protected
  • All
Menu

Eventer API Documentation

Index

Classes

Interfaces

Type aliases

Variables

Functions

Type aliases

Listener

Listener: (...args: any[]) => void

Event Listener interface

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

Variables

Let lastId

lastId: number = 0

Functions

Const Token

  • Token(ownerIndex: number, id: number): Token
  • Parameters

    • ownerIndex: number

      Index of Eventer

    • id: number

      Index of current subscription

    Returns Token

    Unique Token

Const notExistReport

  • Creates Error for non-existing event listener. The Error message is used in multiple occasions.

    Parameters

    • token: Token

      Token of non-existing event

    • id: number

      Eventer id

    Returns EventError