From 4c66fa2bd8722f2fb9b291a0c6757cb49ca84edc Mon Sep 17 00:00:00 2001 From: geppy Date: Fri, 25 Nov 2016 13:47:11 -0600 Subject: [PATCH] pouchdb-find: updated for the ypes-2.0 branch. --- .../{pouchdb-find.d.ts => index.d.ts} | 16 ++++++++-------- pouchdb-find/pouchdb-find-tests.ts | 2 +- pouchdb-find/tsconfig.json | 19 ++++++++++++++++--- 3 files changed, 25 insertions(+), 12 deletions(-) rename pouchdb-find/{pouchdb-find.d.ts => index.d.ts} (96%) diff --git a/pouchdb-find/pouchdb-find.d.ts b/pouchdb-find/index.d.ts similarity index 96% rename from pouchdb-find/pouchdb-find.d.ts rename to pouchdb-find/index.d.ts index be441ef2bb..a125d42ee4 100644 --- a/pouchdb-find/pouchdb-find.d.ts +++ b/pouchdb-find/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Jakub Navratil // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +/// declare namespace PouchDB { @@ -39,13 +39,13 @@ declare namespace PouchDB { /** The document field must not exist in the list provided. */ $nin?: any[]; - + /** Special condition to match the length of an array field in a document. Non-array fields cannot match this condition. */ $size?: number; - /** Divisor and Remainder are both positive or negative integers. - * Non-integer values result in a 404 status. - * Matches documents where (field % Divisor == Remainder) is true, and only when the document field is an integer. + /** Divisor and Remainder are both positive or negative integers. + * Non-integer values result in a 404 status. + * Matches documents where (field % Divisor == Remainder) is true, and only when the document field is an integer. * [divisor, remainder] * */ $mod?: [number, number]; @@ -69,7 +69,7 @@ declare namespace PouchDB { /** Matches if the given selector does not match. */ $not?: Selector; - /** Matches if none of the selectors in the array match. */ + /** Matches if none of the selectors in the array match. */ $nor?: Selector[]; } @@ -88,7 +88,7 @@ declare namespace PouchDB { /** Defines a list of fields defining how you want to sort. Note that sorted fields also have to be selected in the selector. */ sort?: Array; - + /** Maximum number of documents to return. */ limit?: number; @@ -185,4 +185,4 @@ declare namespace PouchDB { declare module 'pouchdb-find' { const plugin: PouchDB.Plugin; export = plugin; -} \ No newline at end of file +} diff --git a/pouchdb-find/pouchdb-find-tests.ts b/pouchdb-find/pouchdb-find-tests.ts index c5c236b897..8d677276fc 100644 --- a/pouchdb-find/pouchdb-find-tests.ts +++ b/pouchdb-find/pouchdb-find-tests.ts @@ -1,4 +1,4 @@ -/// +/// namespace PouchDBFindTests { diff --git a/pouchdb-find/tsconfig.json b/pouchdb-find/tsconfig.json index a47e4d22e8..73949248f8 100644 --- a/pouchdb-find/tsconfig.json +++ b/pouchdb-find/tsconfig.json @@ -1,6 +1,19 @@ { "compilerOptions": { + "module": "commonjs", + "target": "es6", "noImplicitAny": true, - "strictNullChecks": true - } -} \ No newline at end of file + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "pouchdb-find-tests.ts" + ] +}