Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "events/index"

This file is part of the @egodigital/egoose distribution. Copyright (c) e.GO Digital GmbH, Aachen, Germany (https://www.e-go-digital.com/)

egodigital/egoose

is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 3.

egodigital/egoose

is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Index

Type aliases

Functions

Type aliases

EventListener

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

Describes a generic event listener.

param

One or more argument.

Type declaration

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

      • Rest ...args: any[]

      Returns void

Functions

tryRemoveListener

  • tryRemoveListener(obj: EventEmitter, ev: string | symbol, listener: EventListener): boolean
  • Tries to remove a listener from an event emitter.

    Parameters

    • obj: EventEmitter

      The emitter.

    • ev: string | symbol

      The event.

    • listener: EventListener

      The listener.

    Returns boolean

    Operation was successfull or not.

Generated using TypeDoc