Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T: {}

Hierarchy

  • AwaitingEventEmitter

Index

Methods

  • close(): Promise<void>
  • Returns Promise<void>

  • emit<K>(event: K, ...parameters: Parameters<T[K]>): Promise<unknown>
  • Type parameters

    • K: string | number | symbol

    Parameters

    • event: K
    • Rest ...parameters: Parameters<T[K]>

    Returns Promise<unknown>

  • Removes an event listener.

    Type parameters

    • K: string | number | symbol

    Parameters

    Returns AwaitingEventEmitter<T>

  • Registers an event listener that will be awaited before Rollup continues. All listeners will be awaited in parallel while rejections are tracked via Promise.all.

    Type parameters

    • K: string | number | symbol

    Parameters

    Returns AwaitingEventEmitter<T>

  • onCurrentRun<K>(event: K, listener: (...parameters: Parameters<T[K]>) => Promise<ReturnType<T[K]>>): AwaitingEventEmitter<T>
  • Registers an event listener that will be awaited before Rollup continues. All listeners will be awaited in parallel while rejections are tracked via Promise.all. Listeners are removed automatically when removeListenersForCurrentRun is called, which happens automatically after each run.

    Type parameters

    • K: string | number | symbol

    Parameters

    • event: K
    • listener: (...parameters: Parameters<T[K]>) => Promise<ReturnType<T[K]>>
        • (...parameters: Parameters<T[K]>): Promise<ReturnType<T[K]>>
        • Parameters

          • Rest ...parameters: Parameters<T[K]>

          Returns Promise<ReturnType<T[K]>>

    Returns AwaitingEventEmitter<T>