UNPKG

762 BTypeScriptView Raw
1import { Function1 } from "lodash";
2import { RepoContext, SdmContext } from "../context/SdmContext";
3export declare type ListenerInvocation = SdmContext;
4/**
5 * Common parameters to an invocation of a listener to one of the
6 * SDM's specific events. These are fired by our event handlers to allow
7 * multiple, domain specific, listeners to be invoked.
8 */
9export declare type RepoListenerInvocation = RepoContext;
10export declare type RepoListener<I extends RepoListenerInvocation = RepoListenerInvocation, R extends any = any> = Function1<I, Promise<R>>;
11/**
12 * Mapper from a ListenerInvocation to any result
13 */
14export declare type SdmListener<I extends ListenerInvocation, R extends any = any> = Function1<I, Promise<R>>;
15//# sourceMappingURL=Listener.d.ts.map
\No newline at end of file