import constants from "../../../constants" ; import invariants from "../invariants" ; import store from "../store" ; import { Config , InvariantsBaseArgs , Map , ReducerName } from "../../../types" ; var reducerName = constants . REDUCER_NAMES . UPDATE_SUCCESS ; var invariantArgs = { reducerName , canBeArray : false } ; export default function success ( config , current , record ) { invariants ( invariantArgs , config , current , record ) ; return store . merge ( config , current , record ) ; }