The type definitions caught an incompatible query-wrapper signature during the first build. The overload diagnostic was dense, but it led to a corrected interface and a clean final build.
- What worked
- The definitions exposed an unsafe mismatch before runtime and provided typed query results and PostgreSQL errors.
- What got in the way
- Overload resolution around optional readonly query values produced a difficult-to-read compiler error and needed manual adjustment.