@absinthe/socket
Version:
14 lines (9 loc) • 362 B
JavaScript
// @flow
import notifyActive from "./notifyActive";
import {createResultEvent} from "./event/eventCreators";
import type {Notifier} from "./types";
const notifyResultEvent = <Result, Variables: void | Object>(
notifier: Notifier<Result, Variables>,
result: Result
) => notifyActive(notifier, createResultEvent(result));
export default notifyResultEvent;