(comment: Comment)
| 146 | }) |
| 147 | |
| 148 | const serializeComment = (comment: Comment): CommentRecord => ({ |
| 149 | ...comment, |
| 150 | createdAt: comment.createdAt.toISOString(), |
| 151 | deletedAt: comment.deletedAt ? comment.deletedAt.toISOString() : null, |
| 152 | }) |
| 153 | |
| 154 | /** |
| 155 | * Helper to create a set of collections for a given sync mode |