import { isBoolean } from '@utils/common';
import { ResponseArgs } from '@generated/swagger/cat-search-api';
import { isObject } from 'lodash';

export function isResponseArgs(obj: any): obj is ResponseArgs {
  return isBoolean(obj?.error) && isObject(obj?.invalidProperties);
}
