From 68e515378a93a5baafa08c3b312568e0317d0305 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 2 Jan 2013 11:37:09 -0800 Subject: [PATCH] Update header --- pouchDB/pouch-0.1.d.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pouchDB/pouch-0.1.d.ts b/pouchDB/pouch-0.1.d.ts index a80fdc955..da380db7a 100644 --- a/pouchDB/pouch-0.1.d.ts +++ b/pouchDB/pouch-0.1.d.ts @@ -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 +// 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;