From 84b7de8cef99095bc52e0123c602e16e194f7aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Wachter?= Date: Thu, 31 Aug 2017 11:00:43 +0200 Subject: [PATCH] [pg] Reexport the 'pg' module under an attribute 'native' Gives optional access to the native client if installed. --- types/pg/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/pg/index.d.ts b/types/pg/index.d.ts index da6f4db575..d8f41a7e36 100644 --- a/types/pg/index.d.ts +++ b/types/pg/index.d.ts @@ -126,3 +126,7 @@ export declare class Events extends events.EventEmitter { export const types: typeof pgTypes; export const defaults: Defaults & ClientConfig; + +import * as Pg from 'pg'; + +export const native: typeof Pg | null;