@types/pg
Advanced tools
+38
-19
@@ -1,20 +0,3 @@ | ||
| import type * as pg from "./index.d.ts"; | ||
| import * as pg from "./index.js"; | ||
| import TypeOverrides = require("./lib/type-overrides"); | ||
| export type * from "./index.d.ts"; | ||
| export const defaults: typeof pg.defaults; | ||
| export const Client: typeof pg.Client; | ||
| export const Query: typeof pg.Query; | ||
| export const Pool: typeof pg.Pool; | ||
| export const Connection: typeof pg.Connection; | ||
| export const types: typeof pg.types; | ||
| export const DatabaseError: typeof pg.DatabaseError; | ||
| export const escapeIdentifier: typeof pg.escapeIdentifier; | ||
| export const escapeLiteral: typeof pg.escapeLiteral; | ||
| export const Result: typeof pg.Result; | ||
| export { TypeOverrides }; | ||
| declare const PG: { | ||
@@ -28,3 +11,3 @@ defaults: typeof pg.defaults; | ||
| DatabaseError: typeof pg.DatabaseError; | ||
| TypeOverrides: typeof TypeOverrides; | ||
| TypeOverrides: typeof pg.TypeOverrides; | ||
| escapeIdentifier: typeof pg.escapeIdentifier; | ||
@@ -35,2 +18,38 @@ escapeLiteral: typeof pg.escapeLiteral; | ||
| declare namespace PG { | ||
| type QueryConfigValues<T> = pg.QueryConfigValues<T>; | ||
| type ClientConfig = pg.ClientConfig; | ||
| type ConnectionConfig = pg.ConnectionConfig; | ||
| type Defaults = pg.Defaults; | ||
| type PoolConfig = pg.PoolConfig; | ||
| type QueryConfig<I = any[]> = pg.QueryConfig<I>; | ||
| type CustomTypesConfig = pg.CustomTypesConfig; | ||
| type Submittable = pg.Submittable; | ||
| type QueryArrayConfig<I = any[]> = pg.QueryArrayConfig<I>; | ||
| type FieldDef = pg.FieldDef; | ||
| type QueryResultBase = pg.QueryResultBase; | ||
| type QueryResultRow = pg.QueryResultRow; | ||
| type QueryResult<R extends QueryResultRow = any> = pg.QueryResult<R>; | ||
| type QueryArrayResult<R extends any[] = any[]> = pg.QueryArrayResult<R>; | ||
| type Notification = pg.Notification; | ||
| type ResultBuilder<R extends QueryResultRow = any> = pg.ResultBuilder<R>; | ||
| type QueryParse = pg.QueryParse; | ||
| type BindConfig = pg.BindConfig; | ||
| type ExecuteConfig = pg.ExecuteConfig; | ||
| type MessageConfig = pg.MessageConfig; | ||
| type PoolOptions = pg.PoolOptions; | ||
| type PoolClient = pg.PoolClient; | ||
| type ClientBase = pg.ClientBase; | ||
| type Client = pg.Client; | ||
| type Query = pg.Query; | ||
| type Events = pg.Events; | ||
| type Pool = pg.Pool; | ||
| type Connection = pg.Connection; | ||
| type DatabaseError = pg.DatabaseError; | ||
| type TypeOverrides = pg.TypeOverrides; | ||
| type Result = pg.Result; | ||
| } | ||
| export * from "./index.js"; | ||
| export default PG; |
+2
-0
@@ -329,2 +329,4 @@ /// <reference types="node" /> | ||
| export { DatabaseError } from "pg-protocol"; | ||
| import TypeOverrides = require("./lib/type-overrides"); | ||
| export { TypeOverrides }; | ||
@@ -331,0 +333,0 @@ export class Result<R extends QueryResultRow = any> implements QueryResult<R> { |
+2
-2
| { | ||
| "name": "@types/pg", | ||
| "version": "8.15.0", | ||
| "version": "8.15.1", | ||
| "description": "TypeScript definitions for pg", | ||
@@ -36,4 +36,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pg", | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "621727dc26c926798ef3f80daa0f8b353976ad77c5bd2ec930d0200e1442dd00", | ||
| "typesPublisherContentHash": "9b6fadb2b686aa375e1e82795d5c5bbb8b2754016f92e4b1b8114e00da10c4e8", | ||
| "typeScriptVersion": "5.1" | ||
| } |
+1
-1
@@ -11,3 +11,3 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Tue, 06 May 2025 19:32:10 GMT | ||
| * Last updated: Thu, 08 May 2025 16:39: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) | ||
@@ -14,0 +14,0 @@ |
18852
5.15%407
0.49%