import type { Correlation } from '../../types/correlation.js'; import { addAttachmentAtomType } from './addAttachmentAtomType.js'; /** * Sets an attachment array for a given correlation and atom type. * * @param {Correlation} correlation * @param {string} atomType * @param {Array} attachments */ export function setAttachments( correlation: Correlation, atomType: string, attachments: number[], ): Correlation { addAttachmentAtomType(correlation, atomType); correlation.attachment[atomType] = attachments; return correlation; }