import { ConnectionOptions, Connection } from 'typeorm'; import { PostgresDriver } from 'typeorm/driver/postgres/PostgresDriver'; import { Pool } from 'pg'; /** * Ensures that we have connection pool available for us. * * See https://github.com/typeorm/typeorm/issues/2972 */ interface PostgresDriverWithPool extends PostgresDriver { master: Pool; } export interface PostgresConnection extends Connection { driver: PostgresDriverWithPool; } export declare function createConnection(options: ConnectionOptions): Promise; export { PostgresDriver };