From 1379d96fe2ddfa82d430a3b915fdb79d66463c79 Mon Sep 17 00:00:00 2001 From: Vitaly Tomilov Date: Thu, 8 Oct 2020 04:30:00 +0100 Subject: [PATCH] Exposing TypeOverrides from the library's root `TypeOverrides` is too important not to expose it. It should be available from the root. Related: #1838, #2363 --- packages/pg/lib/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/pg/lib/index.js b/packages/pg/lib/index.js index fa6580559..b154a3851 100644 --- a/packages/pg/lib/index.js +++ b/packages/pg/lib/index.js @@ -3,6 +3,7 @@ var Client = require('./client') var defaults = require('./defaults') var Connection = require('./connection') +var TypeOverrides = require('./type-overrides') var Pool = require('pg-pool') const poolFactory = (Client) => { @@ -20,6 +21,7 @@ var PG = function (clientConstructor) { this.Pool = poolFactory(this.Client) this._pools = [] this.Connection = Connection + this.TypeOverrides = TypeOverrides this.types = require('pg-types') }