Interface JustEventEmpty<Type>

Type Parameters

  • Type extends string

Hierarchy

  • JustEventEmpty
  • Create event argments as in emitter.emit(event.type, ...event()). Since this event has no value, this function returns an empty array.

    Returns readonly []

Properties

Methods

Properties

type: Type

The event type: emitter.emit(event.type)

Methods

  • A functional and normalized way to call emitter.emit(...)

    Parameters

    • emitter: EventEmitterLike | EventTargetLike

    Returns void

  • A functional and normalized way to call emitter.addListener(...)

    Parameters

    • emitter: EventEmitterLike | EventTargetLike
    • listener: (() => unknown)
        • (): unknown
        • Returns unknown

    Returns void

  • creates the event listener with type support

    Parameters

    • listener: (() => unknown)
        • (): unknown
        • Returns unknown

    Returns ((...args: any[]) => any)

      • (...args: any[]): any
      • creates the event listener with type support

        Parameters

        • Rest ...args: any[]

        Returns any

Generated using TypeDoc