Makes a damaged row fail its query with a 500 rather than silently vanish from a list. Every service checks the rows of its list queries with it.
f
parseRows<R, T>(): T[]
rows: unknown[],
isRow: (row: unknown) => row is R,
toApi: (row: R) => T
Returns rows turned by toApi, once isRow has accepted each.
Usage
import * as mod from "api/model/rows.ts";