Automatic discovery
"@types/pg": "npm:@stackline/[email protected]"Keep existing imports and compiler discovery.
PostgreSQL TypeScript declarations / MIT
The exact @types/[email protected] 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/[email protected].
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/[email protected] is pinned to the maintained Node 22 linepg-types resolves to @stackline/[email protected][email protected] satisfies the exact ~6.21.0 parent contract@types/pg alias installs finish without warnings04 / Migration
05 / Reference