@canguro/horse
Version:
Deliver your data to wherever you wish, when you wish and how you wish.
14 lines (10 loc) • 384 B
text/typescript
type OriginDestinationFunction = ((data: unknown) => string) | undefined;
let getOriginDestination: OriginDestinationFunction;
/**
*
* @returns a function to map data to the name of the destinations
*/
export const originDestinationFunction = () => getOriginDestination;
export const set = (func: OriginDestinationFunction) => {
getOriginDestination = func;
};