Update header

This commit is contained in:
unknown
2013-01-02 11:37:09 -08:00
parent fd19d4d063
commit 68e515378a
+9 -6
View File
@@ -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;