Patch typescript declaration file (#231)
diff --git a/lib/nano.d.ts b/lib/nano.d.ts
index cf564fb..a0bb7a4 100644
--- a/lib/nano.d.ts
+++ b/lib/nano.d.ts
@@ -58,7 +58,7 @@
}
interface UUIDObject {
- uuids: string[]
+ uuids: string[];
}
// https://docs.couchdb.org/en/stable/api/server/common.html#api-server-root
@@ -815,6 +815,7 @@
value: {
rev: string;
};
+ error?: string;
}
interface DocumentResponseRow<D> extends DocumentResponseRowMeta {
@@ -1173,7 +1174,7 @@
sort?: string | string[];
// Do not wait for the index to finish building to return results.
- stale?: boolean
+ stale?: boolean;
}
// http://docs.couchdb.org/en/latest/api/ddoc/views.html#get--db-_design-ddoc-_view-view
@@ -1292,7 +1293,7 @@
'$in' | '$nin' | '$size' | '$mod' | '$regex' |
'$or' | '$and' | '$nor' | '$not' | '$all' | '$allMatch' | '$elemMatch';
type MangoSelector = {
- [K in MangoOperator | string]: MangoSelector | MangoValue | MangoValue[];
+ [K in MangoOperator | string]: MangoSelector| MangoSelector[] | MangoValue | MangoValue[];
}
// http://docs.couchdb.org/en/latest/api/database/find.html#sort-syntax