mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-20 00:59:29 +08:00
Fix compact method's callback response type
This commit is contained in:
2
types/nano/index.d.ts
vendored
2
types/nano/index.d.ts
vendored
@@ -55,7 +55,7 @@ declare namespace nano {
|
||||
// http://docs.couchdb.org/en/latest/api/server/common.html#get--_all_dbs
|
||||
list(callback?: Callback<string[]>): Request;
|
||||
use<D>(db: string): DocumentScope<D>;
|
||||
compact(name: string, callback?: Callback<any>): Request;
|
||||
compact(name: string, callback?: Callback<OkResponse>): Request;
|
||||
// http://docs.couchdb.org/en/latest/api/database/compact.html#post--db-_compact
|
||||
compact(name: string, designname: string, callback?: Callback<OkResponse>): Request;
|
||||
// http://docs.couchdb.org/en/latest/api/server/common.html#post--_replicate
|
||||
|
||||
Reference in New Issue
Block a user