From c3f1b5766f2251de579b1cc30c82c5b671750c2a Mon Sep 17 00:00:00 2001 From: Sam Jeffress Date: Wed, 12 Feb 2020 14:38:32 +1100 Subject: [PATCH] include SSL in postgres connection definition Reflect the type at https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/pg/index.d.ts --- types/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index eeec0a949f..309294fd91 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -13,6 +13,8 @@ import events = require('events'); import stream = require('stream'); import ResultTypes = require('./result'); +import { ConnectionOptions } from "tls"; + // # Generic type-level utilities // If T is object then make it a partial otherwise fallback to any @@ -1808,6 +1810,7 @@ declare namespace Knex { statement_timeout?: false | number; connectionTimeoutMillis?: number; keepAliveInitialDelayMillis?: number; + ssl?: boolean | ConnectionOptions; } type RedshiftConnectionConfig = PgConnectionConfig;