We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e6643e4 + 54c2044 commit 45d8232Copy full SHA for 45d8232
index.d.ts
@@ -0,0 +1,14 @@
1
+export function parse(connectionString: string): ConnectionOptions;
2
+
3
+export interface ConnectionOptions {
4
+ host: string | null;
5
+ password: string | null;
6
+ user: string | null;
7
+ port: number | null;
8
+ database: string | null;
9
+ client_encoding: string | null;
10
+ ssl: boolean | null;
11
12
+ application_name: string | null;
13
+ fallback_application_name: string | null;
14
+}
package.json
@@ -2,7 +2,8 @@
"name": "pg-connection-string",
"version": "0.1.3",
"description": "Functions for dealing with a PostgresSQL connection string",
- "main": "index.js",
+ "main": "./index.js",
+ "types": "./index.d.ts",
"scripts": {
"test": "tap ./test"
},
0 commit comments