mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-25 16:03:13 +00:00
Merge pull request #10 from NoNameProvided/patch-1
Add support for Typescript typings thanks @NoNameProvided !
This commit is contained in:
commit
45d82320b7
14
index.d.ts
vendored
Normal file
14
index.d.ts
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
export function parse(connectionString: string): ConnectionOptions;
|
||||
|
||||
export interface ConnectionOptions {
|
||||
host: string | null;
|
||||
password: string | null;
|
||||
user: string | null;
|
||||
port: number | null;
|
||||
database: string | null;
|
||||
client_encoding: string | null;
|
||||
ssl: boolean | null;
|
||||
|
||||
application_name: string | null;
|
||||
fallback_application_name: string | null;
|
||||
}
|
||||
@ -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"
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user