Functions
createCourier
- createCourier(target: EventTargetType, isCurried?: boolean): { emit: emit; emitAndStore: emitAndStore; emitAndStoreWithResponse: emitAndStoreWithResponse; emitWithResponse: emitWithResponse; on: curried | on; once: curried | once; subscribe: subscribe }
-
Parameters
-
-
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
The module exposes a factory function that creates a
courier
object.