export const unitCodec = t.union(
    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore We're sure there's at list one element.
    AllUnits.map((u) => t.literal(u))
);