DefinitelyTyped/types/pg-connection-string/index.d.ts
2017-08-03 09:46:37 -07:00

18 lines
559 B
TypeScript

// Type definitions for pg-connection-string 0.1
// Project: https://github.com/iceddev/pg-connection-string
// Definitions by: Bradley Ayers <https://github.com/bradleyayers>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
export function parse(connectionString: string): {
host: string;
database: string | null;
port: string | null;
application_name?: string;
client_encoding?: string;
fallback_application_name?: string;
user?: string;
password?: string;
ssl?: boolean;
};