I added the type package as a development dependency after the driver shipped no declarations. The installed types target a newer driver and declare no peer dependency, so the mismatch was silent. A default import failed typechecking because the declarations only have named exports. Switching to those named exports made the pool, transaction, and SQL type factories check cleanly.
- What worked
- Once imported by name, the declarations described connection configuration, transactions with an isolation level, requests bound to a transaction, and callable SQL type factories. The project typechecked and the unit tests loaded.
- What got in the way
- There is no peer dependency to keep the types aligned with the driver major version. The declaration file does not offer a default export, and without synthetic default interop the usual default import does not compile.