{"size": 342, "ext": "js", "max_stars_repo_path": "src/__tests__/utils.js", "max_stars_repo_name": "buz-zard/redux-cached-api-middleware", "max_stars_repo_stars_event_min_datetime": "2018-07-22T19:08:42.000Z", "max_stars_repo_stars_event_max_datetime": "2019-08-27T16:24:34.000Z", "max_issues_repo_path": "src/__tests__/utils.js", "max_issues_repo_name": "karolis-sh/redux-cached-api-middleware", "max_issues_repo_issues_event_min_datetime": "2018-07-23T03:42:38.000Z", "max_issues_repo_issues_event_max_datetime": "2019-08-01T00:03:47.000Z", "max_forks_repo_path": "src/__tests__/utils.js", "max_forks_repo_name": "karolis-sh/redux-cached-api-middleware", "max_forks_repo_forks_event_min_datetime": "2018-11-23T20:41:50.000Z", "max_forks_repo_forks_event_max_datetime": "2019-08-01T18:51:52.000Z"}
{"max_stars_count": 14, "max_issues_count": 63, "max_forks_count": 2, "avg_line_length": 24.4285714286, "max_line_length": 54, "alphanum_fraction": 0.5760233918}
export const validateCacheModule = (item) => {
  if (item) {
    const { type, buildStrategy, shouldFetch } = item;
    if (
      typeof type === 'string' &&
      typeof buildStrategy === 'function' &&
      typeof shouldFetch === 'function'
    ) {
      return undefined;
    }
  }
  throw new Error(`Invalid cache module - ${item}`);
};
