From b6f2952a4764f5c400580252280c48bbb47767c2 Mon Sep 17 00:00:00 2001 From: Sam Jeffress Date: Thu, 13 Feb 2020 20:31:51 +1100 Subject: [PATCH] include SSL in postgres connection definition (#3659) 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 b2a6c54565..891f312d89 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;