(row: ArtifactSummaryRow)
| 195 | value instanceof Date ? value : new Date(value); |
| 196 | |
| 197 | export const rowToArtifactSummary = (row: ArtifactSummaryRow): ArtifactSummary => ({ |
| 198 | id: ArtifactId.make(row.id), |
| 199 | owner: row.owner as Owner, |
| 200 | title: row.title, |
| 201 | description: row.description ?? null, |
| 202 | preview: previewFromColumn(row.preview), |
| 203 | createdAt: asDate(row.created_at), |
| 204 | updatedAt: asDate(row.updated_at), |
| 205 | }); |
| 206 | |
| 207 | export const rowToArtifact = (row: ArtifactRow): Artifact => ({ |
| 208 | ...rowToArtifactSummary(row), |
no test coverage detected