Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "Courier"

The module exposes a factory function that creates a courier object.

Index

Classes

Functions

Functions

createCourier

  • createCourier(target: EventTargetType, isCurried?: boolean): { emit: emit; emitAndStore: emitAndStore; emitAndStoreWithResponse: emitAndStoreWithResponse; emitWithResponse: emitWithResponse; on: curried | on; once: curried | once; subscribe: subscribe }
  • It creates and returns an Courier instance

    Parameters

    • target: EventTargetType

      an event target

    • Default value isCurried: boolean = false

    Returns { emit: emit; emitAndStore: emitAndStore; emitAndStoreWithResponse: emitAndStoreWithResponse; emitWithResponse: emitWithResponse; on: curried | on; once: curried | once; subscribe: subscribe }

    • emit: emit
    • emitAndStore: emitAndStore
    • emitAndStoreWithResponse: emitAndStoreWithResponse
    • emitWithResponse: emitWithResponse
    • on: curried | on
    • once: curried | once
    • subscribe: subscribe

Generated using TypeDoc