Files
Tom Moor bf45e97641 chore: Enforce type import consistency (#10968)
* Update types

* fix circular dep

* type imports

* lint type imports and --fix
2025-12-19 23:07:02 -05:00

14 lines
350 B
TypeScript

import type { Attachment } from "@server/models";
export default function presentAttachment(attachment: Attachment) {
return {
userId: attachment.userId,
documentId: attachment.documentId,
contentType: attachment.contentType,
name: attachment.name,
id: attachment.id,
url: attachment.url,
size: attachment.size,
};
}