mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
ts 2.2 and relax type requirement
This commit is contained in:
Vendored
+2
-1
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/apache/couchdb-nano
|
||||
// Definitions by: Tim Jacobi <https://github.com/timjacobi>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
import { EventEmitter } from 'events';
|
||||
import { Request, CoreOptions } from 'request';
|
||||
@@ -52,7 +53,7 @@ declare namespace nano {
|
||||
interface DocumentScope {
|
||||
readonly config: ServerConfig
|
||||
info(callback?: Callback): Request
|
||||
replicate(target: string, options?: object, callback?: Callback): Request
|
||||
replicate(target: string | DocumentScope, options?: object, callback?: Callback): Request
|
||||
compact(callback?: Callback): Request
|
||||
changes(params?: object, callback?: Callback): Request
|
||||
follow(params?: ScopedFollowUpdatesParams, callback?: Callback): any
|
||||
|
||||
Reference in New Issue
Block a user