diff --git a/types/nano/index.d.ts b/types/nano/index.d.ts index b7222b1064..a6d0956f9e 100644 --- a/types/nano/index.d.ts +++ b/types/nano/index.d.ts @@ -63,7 +63,7 @@ declare namespace nano { source: string | DocumentScope, target: string | DocumentScope, callback?: Callback - ): Request + ): Request; // http://docs.couchdb.org/en/latest/api/server/common.html#post--_replicate replicate( source: string | DocumentScope, @@ -92,7 +92,7 @@ declare namespace nano { replicate( target: string | DocumentScope, callback?: Callback - ): Request + ): Request; // http://docs.couchdb.org/en/latest/api/server/common.html#post--_replicate replicate( target: string | DocumentScope, @@ -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): Request; // http://docs.couchdb.org/en/latest/api/document/common.html#creating-multiple-attachments - insert(doc: D, attachments: any[], params: string | any, callback?: Callback): Request; + insert(doc: D, attachments: any[], params: any, callback?: Callback): Request; get(docname: string, callback?: Callback): Request; - get(docname: string, params: string | any, callback?: Callback): Request; + get(docname: string, params: any, callback?: Callback): Request; } interface Attachment { diff --git a/types/nano/nano-tests.ts b/types/nano/nano-tests.ts index 522064f993..2184ed822f 100644 --- a/types/nano/nano-tests.ts +++ b/types/nano/nano-tests.ts @@ -66,8 +66,8 @@ db.replicate("a", "b", (error: any) => {}); /* * Document Scope */ -interface SomeDocument{ - name: string +interface SomeDocument { + name: string; } const mydb: nano.DocumentScope = instance.use("mydb");