Fix linter errors

This commit is contained in:
Kovács Vince
2017-09-04 08:06:27 +02:00
parent aa49d0e86c
commit 943cbff3e8
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -63,7 +63,7 @@ declare namespace nano {
source: string | DocumentScope<D>,
target: string | DocumentScope<D>,
callback?: Callback<DatabaseReplicateResponse>
): Request
): Request;
// http://docs.couchdb.org/en/latest/api/server/common.html#post--_replicate
replicate<D>(
source: string | DocumentScope<D>,
@@ -92,7 +92,7 @@ declare namespace nano {
replicate<D>(
target: string | DocumentScope<D>,
callback?: Callback<DatabaseReplicateResponse>
): Request
): Request;
// http://docs.couchdb.org/en/latest/api/server/common.html#post--_replicate
replicate(
target: string | DocumentScope<D>,
@@ -266,9 +266,9 @@ declare namespace nano {
// http://docs.couchdb.org/en/latest/api/document/common.html#creating-multiple-attachments
insert(doc: D, attachments: any[], callback?: Callback<DocumentInsertResponse>): Request;
// http://docs.couchdb.org/en/latest/api/document/common.html#creating-multiple-attachments
insert(doc: D, attachments: any[], params: string | any, callback?: Callback<DocumentInsertResponse>): Request;
insert(doc: D, attachments: any[], params: any, callback?: Callback<DocumentInsertResponse>): Request;
get(docname: string, callback?: Callback<any>): Request;
get(docname: string, params: string | any, callback?: Callback<any>): Request;
get(docname: string, params: any, callback?: Callback<any>): Request;
}
interface Attachment {
+2 -2
View File
@@ -66,8 +66,8 @@ db.replicate("a", "b", (error: any) => {});
/*
* Document Scope
*/
interface SomeDocument{
name: string
interface SomeDocument {
name: string;
}
const mydb: nano.DocumentScope<SomeDocument> = instance.use("mydb");