docs: function modelRootReducer() {
          var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : modelInitState;
          var action = arguments.length > 1 ? arguments[1] : undefined;
          return (0, _immer.default)(state, function (draft) {
            var caseReducer = modelReducers[action.type];
  
            if (caseReducer) {
              return caseReducer(draft, action);
            }
  
            return draft;
          });
        }