import { ApiTextResponseAttributes } from 'src/application/models/api/responseGenerics';

export const isApiTextResponseAttributes = (
  attributes: unknown,
): attributes is ApiTextResponseAttributes =>
  typeof attributes === 'object' &&
  attributes != null &&
  'content' in attributes &&
  typeof attributes.content === 'string';
