Type alias OverriddenMethods<TEmitter, TEventRecord, TEmitRecord>

OverriddenMethods<TEmitter, TEventRecord, TEmitRecord>: {
    addEventListener: any;
    addListener: any;
    emit: any;
    on: any;
    once: any;
    removeEventListener: any;
    removeListener: any;
}

Type Parameters

  • TEmitter

  • TEventRecord

  • TEmitRecord = TEventRecord

Type declaration

  • addEventListener:function
    • Type Parameters

      • P extends string | number | symbol

      • T

      Parameters

      • this: T
      • event: P
      • listener: ((...args: ListenerType<TEventRecord[P]>) => void)

      Returns EEMethodReturnType<TEmitter, "addEventListener", T, void>

    • Parameters

      • event: typeof assignmentCompatibilityHack
      • listener: ((...args: any[]) => any)
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      Returns void

  • addListener:function
    • Type Parameters

      • P extends string | number | symbol

      • T

      Parameters

      • this: T
      • event: P
      • listener: ((...args: ListenerType<TEventRecord[P]>) => void)

      Returns EEMethodReturnType<TEmitter, "addListener", T, void>

    • Parameters

      • event: typeof assignmentCompatibilityHack
      • listener: ((...args: any[]) => any)
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      Returns void

  • emit:function
    • Type Parameters

      • P extends string | number | symbol

      • T

      Parameters

      • this: T
      • event: P
      • Rest ...args: ListenerType<TEmitRecord[P]>

      Returns EEMethodReturnType<TEmitter, "emit", T, void>

    • Parameters

      Returns void

  • on:function
    • Type Parameters

      • P extends string | number | symbol

      • T

      Parameters

      • this: T
      • event: P
      • listener: ((...args: ListenerType<TEventRecord[P]>) => void)

      Returns EEMethodReturnType<TEmitter, "on", T, void>

    • Parameters

      • event: typeof assignmentCompatibilityHack
      • listener: ((...args: any[]) => any)
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      Returns void

  • once:function
    • Type Parameters

      • P extends string | number | symbol

      • T

      Parameters

      • this: T
      • event: P
      • listener: ((...args: ListenerType<TEventRecord[P]>) => void)

      Returns EEMethodReturnType<TEmitter, "once", T, void>

    • Parameters

      • event: typeof assignmentCompatibilityHack
      • listener: ((...args: any[]) => any)
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      Returns void

  • removeEventListener:function
    • Type Parameters

      • P extends string | number | symbol

      • T

      Parameters

      • this: T
      • event: P
      • listener: ((...args: any[]) => any)
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      Returns EEMethodReturnType<TEmitter, "removeEventListener", T, void>

    • Parameters

      • event: typeof assignmentCompatibilityHack
      • listener: ((...args: any[]) => any)
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      Returns void

  • removeListener:function
    • Type Parameters

      • P extends string | number | symbol

      • T

      Parameters

      • this: T
      • event: P
      • listener: ((...args: any[]) => any)
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      Returns EEMethodReturnType<TEmitter, "removeListener", T, void>

    • Parameters

      • event: typeof assignmentCompatibilityHack
      • listener: ((...args: any[]) => any)
          • (...args: any[]): any
          • Parameters

            • Rest ...args: any[]

            Returns any

      Returns void

Generated using TypeDoc