Automatic discovery
"@types/pg": "npm:@stackline/types-pg@1.0.1"Keep existing imports and compiler discovery.
PostgreSQL TypeScript declarations / MIT
The exact @types/pg@8.23.1 declaration surface with a reviewed parser and Node type dependency chain.
npm install @stackline/types-pg
Preserve automatic discovery with npm install @types/pg@npm:@stackline/types-pg.
01 / Install
npm install \
pg@npm:@stackline/pg \
@types/pg@npm:@stackline/types-pgExisting import { Pool } from 'pg' statements and deep declaration imports continue to resolve through their historical package keys.
02 / Declaration contract
Public API. Client, pool, query, configuration, result-row, notification, and event declarations are unchanged from @types/pg@8.23.1.
Module systems. CJS and ESM declaration entry points are included, along with supported pg/lib/* paths.
Compiler line. The package preserves the baseline TypeScript 5.6 minimum instead of silently raising it.
03 / Production closure
@types/node@22.20.1 is pinned to the maintained Node 22 linepg-types resolves to @stackline/pg-types@1.0.0undici-types@6.21.0 satisfies the exact ~6.21.0 parent contract@types/pg alias installs finish without warnings04 / Migration
05 / Reference