diff --git a/types/pouchdb-browser/index.d.ts b/types/pouchdb-browser/index.d.ts index 94f942302c..3872feef98 100644 --- a/types/pouchdb-browser/index.d.ts +++ b/types/pouchdb-browser/index.d.ts @@ -1,7 +1,8 @@ -// Type definitions for pouchdb-browser v6.1.2 +// Type definitions for pouchdb-browser 6.1 // Project: https://pouchdb.com/ // Definitions by: Simon Paulger , Brian Geppert , Frederico Galvão // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 /// /// @@ -10,6 +11,9 @@ /// /// +// TODO: Fixing this lint error will require a large refactor +/* tslint:disable:no-single-declare-module */ + declare module 'pouchdb-browser' { const PouchDb: PouchDB.Static; export = PouchDb; diff --git a/types/pouchdb-browser/pouchdb-browser-tests.ts b/types/pouchdb-browser/pouchdb-browser-tests.ts index faaa5b5d21..29b8d55b5a 100644 --- a/types/pouchdb-browser/pouchdb-browser-tests.ts +++ b/types/pouchdb-browser/pouchdb-browser-tests.ts @@ -1,5 +1,7 @@ function testConstructor() { - type MyModel = { numericProperty: number }; + interface MyModel { + numericProperty: number; + } let model: PouchDB.Core.Document; let db = new PouchDB(null, { diff --git a/types/pouchdb-browser/tslint.json b/types/pouchdb-browser/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/pouchdb-browser/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/pouchdb-http/index.d.ts b/types/pouchdb-http/index.d.ts index 8dde8993e9..8c5dfd3104 100644 --- a/types/pouchdb-http/index.d.ts +++ b/types/pouchdb-http/index.d.ts @@ -1,11 +1,15 @@ -// Type definitions for pouchdb-http v6.1.2 +// Type definitions for pouchdb-http 6.1 // Project: https://pouchdb.com/ // Definitions by: Simon Paulger , Brian Geppert , Frederico Galvão // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 /// /// +// TODO: Fixing this lint error will require a large refactor +/* tslint:disable:no-single-declare-module */ + declare module 'pouchdb-http' { const PouchDb: PouchDB.Static; export = PouchDb; diff --git a/types/pouchdb-http/pouchdb-http-tests.ts b/types/pouchdb-http/pouchdb-http-tests.ts index 05a0f1667d..ebf0b04bed 100644 --- a/types/pouchdb-http/pouchdb-http-tests.ts +++ b/types/pouchdb-http/pouchdb-http-tests.ts @@ -1,5 +1,7 @@ function testConstructor() { - type MyModel = { numericProperty: number }; + interface MyModel { + numericProperty: number; + } let model: PouchDB.Core.Document; let db = new PouchDB('myDb', { diff --git a/types/pouchdb-http/tslint.json b/types/pouchdb-http/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/pouchdb-http/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/pouchdb-node/index.d.ts b/types/pouchdb-node/index.d.ts index aed20c7192..c0f48adb23 100644 --- a/types/pouchdb-node/index.d.ts +++ b/types/pouchdb-node/index.d.ts @@ -1,7 +1,8 @@ -// Type definitions for pouchdb-node v6.1.2 +// Type definitions for pouchdb-node 6.1 // Project: https://pouchdb.com/ // Definitions by: Simon Paulger , Brian Geppert , Frederico Galvão // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 /// /// @@ -9,6 +10,9 @@ /// /// +// TODO: Fixing this lint error will require a large refactor +/* tslint:disable:no-single-declare-module */ + declare namespace PouchDB { namespace Core { interface DatabaseInfo { diff --git a/types/pouchdb-node/pouchdb-node-tests.ts b/types/pouchdb-node/pouchdb-node-tests.ts index 107dcf00e8..21b42558f0 100644 --- a/types/pouchdb-node/pouchdb-node-tests.ts +++ b/types/pouchdb-node/pouchdb-node-tests.ts @@ -1,5 +1,7 @@ function testConstructor() { - type MyModel = { numericProperty: number }; + interface MyModel { + numericProperty: number; + } let model: PouchDB.Core.Document; let db = new PouchDB('myDb', { diff --git a/types/pouchdb-node/tslint.json b/types/pouchdb-node/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/pouchdb-node/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/pouchdb/index.d.ts b/types/pouchdb/index.d.ts index e14e4c421f..48bc6279ff 100644 --- a/types/pouchdb/index.d.ts +++ b/types/pouchdb/index.d.ts @@ -1,7 +1,8 @@ -// Type definitions for pouchdb v6.1.2 +// Type definitions for pouchdb 6.1 // Project: https://pouchdb.com/ // Definitions by: Andy Brown , Brian Geppert , Frederico Galvão // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 /// /// @@ -18,6 +19,9 @@ /// /// +// TODO: Fixing this lint error will require a large refactor +/* tslint:disable:no-single-declare-module */ + declare module 'pouchdb' { const plugin: PouchDB.Static; export = plugin; diff --git a/types/pouchdb/pouchdb-tests.ts b/types/pouchdb/pouchdb-tests.ts index ef7da0fd83..25e3861b99 100644 --- a/types/pouchdb/pouchdb-tests.ts +++ b/types/pouchdb/pouchdb-tests.ts @@ -19,7 +19,7 @@ function testAllDocs() { // check document property isNumber(doc.foo); - }) + }); }); db.allDocs({ startkey: "a", endkey: "b" }); @@ -48,7 +48,9 @@ function testDestroy() { } function testBasics() { - type MyModel = { property: 'someProperty '}; + interface MyModel { + property: 'someProperty '; + } let model: PouchDB.Core.Document; const id = 'model'; diff --git a/types/pouchdb/tslint.json b/types/pouchdb/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/pouchdb/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }