From d0df8af318e457abf9a8f193f310b53e2feefb70 Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 20 Dec 2017 15:33:01 -0800 Subject: [PATCH] pg-connection-string: Provides its own types (#22375) --- notNeededPackages.json | 6 +++++ types/pg-connection-string/index.d.ts | 17 -------------- .../pg-connection-string-tests.ts | 13 ----------- types/pg-connection-string/tsconfig.json | 23 ------------------- types/pg-connection-string/tslint.json | 1 - 5 files changed, 6 insertions(+), 54 deletions(-) delete mode 100644 types/pg-connection-string/index.d.ts delete mode 100644 types/pg-connection-string/pg-connection-string-tests.ts delete mode 100644 types/pg-connection-string/tsconfig.json delete mode 100644 types/pg-connection-string/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index bac83690ae..921fd414ce 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -552,6 +552,12 @@ "sourceRepoURL": "https://github.com/pillarjs/path-to-regexp", "asOfVersion": "1.7.0" }, + { + "libraryName": "pg-connection-string", + "typingsPackageName": "pg-connection-string", + "sourceRepoURL": "https://github.com/iceddev/pg-connection-string", + "asOfVersion": "2.0.0" + }, { "libraryName": "pg-promise", "typingsPackageName": "pg-promise", diff --git a/types/pg-connection-string/index.d.ts b/types/pg-connection-string/index.d.ts deleted file mode 100644 index fa79138728..0000000000 --- a/types/pg-connection-string/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Type definitions for pg-connection-string 0.1 -// Project: https://github.com/iceddev/pg-connection-string -// Definitions by: Bradley Ayers -// 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; -}; diff --git a/types/pg-connection-string/pg-connection-string-tests.ts b/types/pg-connection-string/pg-connection-string-tests.ts deleted file mode 100644 index bf9698a7b9..0000000000 --- a/types/pg-connection-string/pg-connection-string-tests.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { parse } from 'pg-connection-string'; - -const parts = parse('postgres://user:password@host:port/dbname'); - -parts.application_name; -parts.client_encoding; -parts.database; -parts.fallback_application_name; -parts.host; -parts.password; -parts.port; -parts.ssl; -parts.user; diff --git a/types/pg-connection-string/tsconfig.json b/types/pg-connection-string/tsconfig.json deleted file mode 100644 index c3b2765339..0000000000 --- a/types/pg-connection-string/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "pg-connection-string-tests.ts" - ] -} \ No newline at end of file diff --git a/types/pg-connection-string/tslint.json b/types/pg-connection-string/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/pg-connection-string/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }