mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Replace pouchdb-core get open revision overloads
This commit is contained in:
Vendored
+12
-1
@@ -522,15 +522,26 @@ declare namespace PouchDB {
|
||||
|
||||
/** Fetch a document */
|
||||
get<Model>(docId: Core.DocumentId,
|
||||
options: Core.GetOptions | Core.GetOpenRevisions | null,
|
||||
options: Core.GetOptions | null,
|
||||
callback: Core.Callback<Core.Document<Content & Model> & Core.GetMeta>
|
||||
): void;
|
||||
|
||||
/** Fetch a document */
|
||||
get<Model>(docId: Core.DocumentId,
|
||||
options: Core.GetOpenRevisions,
|
||||
callback: Core.Callback<Array<Core.Revision<Content & Model>>>
|
||||
): void;
|
||||
|
||||
/** Fetch a document */
|
||||
get<Model>(docId: Core.DocumentId,
|
||||
options?: Core.GetOptions | Core.GetOpenRevisions
|
||||
): Promise<Core.Document<Content & Model> & Core.GetMeta>;
|
||||
|
||||
/** Fetch a document */
|
||||
get<Model>(docId: Core.DocumentId,
|
||||
options: Core.GetOpenRevisions
|
||||
): Promise<Array<Core.Revision<Content & Model>>>;
|
||||
|
||||
/** Create a new document without providing an id.
|
||||
*
|
||||
* You should prefer put() to post(), because when you post(), you are
|
||||
|
||||
Reference in New Issue
Block a user