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