import { IPublicTypeSetterConfig } from '../shell/type/setter-config';
import { isCustomView } from './isCustomView';

/**
 * @deprecated use same function from '@felce/lowcode-utils' instead
 */
export function isSetterConfig(obj: any): obj is IPublicTypeSetterConfig {
  return (
    obj &&
    typeof obj === 'object' &&
    'componentName' in obj &&
    !isCustomView(obj)
  );
}
