Metakit / @doeixd/metakit/build
caseProblem
function · packages/metakit/src/exprMatch.ts:45
function caseProblem(
on: Node.Node,
keys: ReadonlyArray<string>,
exhaustive: boolean,
): string | undefinedWhat is wrong with the case labels keys of a Match on on, or
undefined: a label holding a NUL character (Postgres cannot store one), a
label given twice, a label the Schema of on cannot hold and, where
exhaustive, a value of it with no case. A builder throws it; a decoder
refuses with it.