import { QueryTypedAttributes } from '@spiffy-ai/commerce-api-client';

export const isApiQueryTypedAttributes = (data: unknown): data is QueryTypedAttributes =>
  data != null && typeof data === 'object' && 'query' in data && typeof data.query === 'string';
