• Public
  • Public/Protected
  • All

Interface Evented

An interface allows to register listeners for objects that emit events. If you have a custom class that emits events, you may want to consider using Evented with EventedSupport.


Implemented by





  • (event: string, callback: (...args: any[]) => void, context?: object, options?: object): Handle
  • Registers a callback function for a given event type.


    • event: string

      the event type to register on

    • callback: (...args: any[]) => void

      the callback function to register

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

          • Rest ...args: any[]

          Returns void

    • Optional context: object

      the context in which the callback function should be invoked

    • Optional options: object

      options that may influence the callback registration. Interpretation of this object is implementation dependent.

    Returns Handle

    a handle to the registered callback with a single function 'remove'. This function can be used to unregister the callback function.


  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method