(cell: unknown)
| 129 | } |
| 130 | |
| 131 | function formatCellDefault(cell: unknown) { |
| 132 | if (typeof cell === "string") { |
| 133 | return cell; |
| 134 | } else if (Array.isArray(cell)) { |
| 135 | return formatArray(cell); |
| 136 | } else { |
| 137 | // TODO: handle record types (represented here as JavaScript objects) as |
| 138 | // psql does. psql only renders `jsonb` data as JSON. |
| 139 | return JSON.stringify(cell); |
| 140 | } |
| 141 | } |
no test coverage detected