Skip to content

Commit 748925b

Browse files
committed
type(pg-connection-string): the more specific typing ssl for ConnectionOptions, and add support for any keys as other query params are preserved intact
1 parent 8291b23 commit 748925b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

packages/pg-connection-string/index.d.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,19 @@ export interface ConnectionOptions {
77
port?: string | null
88
database: string | null | undefined
99
client_encoding?: string
10-
ssl?: boolean | string
10+
ssl?:
11+
| string
12+
| boolean
13+
| {
14+
cert: string
15+
key: string
16+
ca: string
17+
}
1118

1219
application_name?: string
1320
fallback_application_name?: string
1421
options?: string
22+
schema?: string
23+
24+
[key: string]: any
1525
}

0 commit comments

Comments
 (0)