UNPKG

@dillonkearns/elm-graphql

Version:

<img src="https://cdn.jsdelivr.net/gh/martimatix/logo-graphqelm/logo.svg" alt="dillonearns/elm-graphql logo" width="40%" align="right">

17 lines (11 loc) 346 B
// @flow import type {AbsintheSocket, Notifier} from "./types"; type Notifiers = Array<Notifier<any>>; const updateNotifiers = ( absintheSocket: AbsintheSocket, updater: (notifiers: Notifiers) => Notifiers ) => { absintheSocket.notifiers = updater(absintheSocket.notifiers); return absintheSocket; }; export default updateNotifiers;