From 84a68824532d6addbed03037e8b1a01aa43b4a2b Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Wed, 20 Dec 2017 11:43:04 -0800 Subject: [PATCH] anydb-sql-migrations: Provides its own types --- notNeededPackages.json | 6 ++ .../anydb-sql-migrations-tests.ts | 15 ---- types/anydb-sql-migrations/index.d.ts | 30 ------- types/anydb-sql-migrations/package.json | 6 -- types/anydb-sql-migrations/tsconfig.json | 23 ------ types/anydb-sql-migrations/tslint.json | 79 ------------------- 6 files changed, 6 insertions(+), 153 deletions(-) delete mode 100644 types/anydb-sql-migrations/anydb-sql-migrations-tests.ts delete mode 100644 types/anydb-sql-migrations/index.d.ts delete mode 100644 types/anydb-sql-migrations/package.json delete mode 100644 types/anydb-sql-migrations/tsconfig.json delete mode 100644 types/anydb-sql-migrations/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index 4b6f20790b..2d2bed17c9 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -42,6 +42,12 @@ "sourceRepoURL": "https://github.com/doxout/anydb-sql", "asOfVersion": "0.6.46" }, + { + "libraryName": "anydb-sql-migrations", + "typingsPackageName": "anydb-sql-migrations", + "sourceRepoURL": "https://github.com/spion/anydb-sql-migrations", + "asOfVersion": "2.1.1" + }, { "libraryName": "apn", "typingsPackageName": "apn", diff --git a/types/anydb-sql-migrations/anydb-sql-migrations-tests.ts b/types/anydb-sql-migrations/anydb-sql-migrations-tests.ts deleted file mode 100644 index ed79ace368..0000000000 --- a/types/anydb-sql-migrations/anydb-sql-migrations-tests.ts +++ /dev/null @@ -1,15 +0,0 @@ -import anydbsql = require('anydb-sql'); -import { Table, Column } from 'anydb-sql' -import migrator = require('anydb-sql-migrations'); - -function do_not_run() { - - var db = anydbsql({ - url: 'postgres://user:pass@host:port/database', - connections: { min: 2, max: 20 } - }); - - migrator - .create(db, '/path/to/migrations/dir') - .run(); -} diff --git a/types/anydb-sql-migrations/index.d.ts b/types/anydb-sql-migrations/index.d.ts deleted file mode 100644 index f6e12ed752..0000000000 --- a/types/anydb-sql-migrations/index.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Type definitions for anydb-sql-migrations -// Project: https://github.com/spion/anydb-sql-migrations -// Definitions by: Gorgi Kosev -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -import Promise = require('bluebird'); -import { Column, Table, Transaction, AnydbSql } from 'anydb-sql'; -export interface Migration { - version: string; -} -export interface MigrationsTable extends Table { - version: Column; -} -export interface MigFn { - (tx: Transaction): Promise; -} -export interface MigrationTask { - up: MigFn; - down: MigFn; - name: string; -} -export declare function create(db: AnydbSql, tasks: string | MigrationTask[]): { - run: () => Promise; - migrateTo: (target?: string) => Promise; - check: (f: (m: { - type: string; - items: MigrationTask[]; - }) => any) => Promise; -}; diff --git a/types/anydb-sql-migrations/package.json b/types/anydb-sql-migrations/package.json deleted file mode 100644 index 9b88fd6822..0000000000 --- a/types/anydb-sql-migrations/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "private": true, - "dependencies": { - "anydb-sql": "^0.6.53" - } -} diff --git a/types/anydb-sql-migrations/tsconfig.json b/types/anydb-sql-migrations/tsconfig.json deleted file mode 100644 index 33bb5ae800..0000000000 --- a/types/anydb-sql-migrations/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "anydb-sql-migrations-tests.ts" - ] -} \ No newline at end of file diff --git a/types/anydb-sql-migrations/tslint.json b/types/anydb-sql-migrations/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/anydb-sql-migrations/tslint.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -}