MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / serializeAttachment

Function serializeAttachment

packages/serializers/src/message.ts:22–29  ·  view source on GitHub ↗
(
  attachment: messageAttachments
)

Source from the content-addressed store, hash-verified

20import { MessageFormat } from '@linen/types';
21
22function serializeAttachment(
23 attachment: messageAttachments
24): SerializedAttachment {
25 return {
26 url: attachment.internalUrl as string,
27 name: attachment.name,
28 };
29}
30
31type MentionsForSerialization = mentions & { users?: users | null };
32

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected