foundation-utils.subscribe
Home > @genesislcap/foundation-utils > Subscribe
Subscribe type
Subscribes a listener function to receive events of a specific type.
Signature:
export type Subscribe<EventType> = (listener: Listener<EventType>) => () => void;
References: Listener