From 2a8dcade032af2a718d013185b7e55f9e232f157 Mon Sep 17 00:00:00 2001 From: Max Battcher Date: Thu, 8 Jun 2017 17:19:16 -0400 Subject: [PATCH] Replace pouchdb-core get open revision overloads --- types/pouchdb-core/index.d.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/types/pouchdb-core/index.d.ts b/types/pouchdb-core/index.d.ts index 71fdb011b6..933dfbf6a5 100644 --- a/types/pouchdb-core/index.d.ts +++ b/types/pouchdb-core/index.d.ts @@ -522,15 +522,26 @@ declare namespace PouchDB { /** Fetch a document */ get(docId: Core.DocumentId, - options: Core.GetOptions | Core.GetOpenRevisions | null, + options: Core.GetOptions | null, callback: Core.Callback & Core.GetMeta> ): void; + /** Fetch a document */ + get(docId: Core.DocumentId, + options: Core.GetOpenRevisions, + callback: Core.Callback>> + ): void; + /** Fetch a document */ get(docId: Core.DocumentId, options?: Core.GetOptions | Core.GetOpenRevisions ): Promise & Core.GetMeta>; + /** Fetch a document */ + get(docId: Core.DocumentId, + options: Core.GetOpenRevisions + ): Promise>>; + /** Create a new document without providing an id. * * You should prefer put() to post(), because when you post(), you are