(topic: {
id: string;
threadId: string | null;
sentAt: Date;
usersId: string | null;
})
| 116 | } |
| 117 | |
| 118 | export function serializeTopic(topic: { |
| 119 | id: string; |
| 120 | threadId: string | null; |
| 121 | sentAt: Date; |
| 122 | usersId: string | null; |
| 123 | }): SerializedTopic { |
| 124 | return { |
| 125 | messageId: topic.id, |
| 126 | threadId: topic.threadId!, |
| 127 | sentAt: new Date(topic.sentAt).toISOString(), |
| 128 | usersId: topic.usersId, |
| 129 | }; |
| 130 | } |
nothing calls this directly
no outgoing calls
no test coverage detected