# @types/pg

> TypeScript definitions for pg

Latest version **8.23.1** (published 2026-08-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/pg
pnpm add @types/pg
yarn add @types/pg
bun add @types/pg
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; popular repo; extremely popular.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 8.23.1 |
| Published | 2026-08-17 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 19.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/pg
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pg
- npm.io page: https://npm.io/package/@types/pg

## Dependencies (3)

- [pg-types](https://npm.io/package/pg-types.md) ^2.2.0
- [@types/node](https://npm.io/package/@types/node.md) *
- [pg-protocol](https://npm.io/package/pg-protocol.md) *

## Recent versions

- 8.23.1 (latest) — 2026-08-17
- 8.20.0 (ts5.5) — 2026-03-20
- 8.15.5 (ts5.1) — 2025-07-29
- 8.11.11 (ts5.0) — 2025-01-23
- 8.11.10 (ts4.8) — 2024-09-13
- 8.11.6 (ts4.7) — 2024-05-04
- 8.11.2 (ts4.6) — 2024-02-26
- 8.10.9 (ts4.5) — 2023-11-07
- 8.10.2 (ts4.3) — 2023-06-06
- 8.6.6 (ts4.2) — 2022-12-23
- 8.6.5 (ts3.9) — 2022-03-07
- 8.6.4 (ts3.8) — 2022-01-10
- 8.6.1 (ts3.7) — 2021-07-07
- 8.6.0 (ts3.5) — 2021-05-18
- 7.14.11 (ts3.4) — 2021-03-04
- … 107 more at https://npm.io/package/@types/pg/versions

## README

# Installation
> `npm install --save @types/pg`

# Summary
This package contains type definitions for pg (https://github.com/brianc/node-postgres).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pg.

### Additional Details
 * Last updated: Mon, 17 Aug 2026 20:05:09 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [pg-protocol](https://npmjs.com/package/pg-protocol), [pg-types](https://npmjs.com/package/pg-types)

# Credits
These definitions were written by [Phips Peter](https://github.com/pspeter3).

---
_Source: https://npm.io/package/@types/pg · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
