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

  • 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