mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Update header
This commit is contained in:
Vendored
+9
-6
@@ -1,9 +1,7 @@
|
||||
// Type definitions for pouch.js
|
||||
|
||||
interface PouchOptions {
|
||||
name?: string;
|
||||
adapter?: string;
|
||||
}
|
||||
// Type definitions for Pouch 0.1
|
||||
// Project: http://pouchdb.com
|
||||
// Definitions by: Bill Sears <https://github.com/MrBigDog2U/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface PouchError {
|
||||
status: number;
|
||||
@@ -199,6 +197,11 @@ interface PouchApi {
|
||||
replicate: PouchReplicate;
|
||||
}
|
||||
|
||||
interface PouchOptions {
|
||||
name?: string;
|
||||
adapter?: string;
|
||||
}
|
||||
|
||||
interface Pouch extends PouchApi {
|
||||
(name: string, opts: PouchOptions, callback: (err: PouchError, res: Pouch) => void ): Pouch;
|
||||
(name: string, callback: (err: PouchError, res: Pouch) => void ): Pouch;
|
||||
|
||||
Reference in New Issue
Block a user