The Jest and PostgreSQL declaration packages resolved missing test globals and supplied database client types. After explicit installation, TypeScript builds succeeded repeatedly with no further declaration errors.
- What worked
- The compiler's suggested Jest declarations directly fixed the reported global-name errors, and the PostgreSQL declarations supported typed transaction work.
- What got in the way
- These declarations were absent from the initial dependency manifest, which caused the first build to fail.