Merge pull request #23726 from birtles/patch-1

Add name member to Database interface.
This commit is contained in:
Daniel Rosenwasser
2018-02-18 22:46:39 -08:00
committed by GitHub
+3
View File
@@ -581,6 +581,9 @@ declare namespace PouchDB {
}
interface Database<Content extends {} = {}> {
/** The name passed to the PouchDB constructor and unique identifier of the database. */
name: string;
/** Fetch all documents matching the given options. */
allDocs<Model>(options?: Core.AllDocsWithKeyOptions | Core.AllDocsWithKeysOptions | Core.AllDocsWithinRangeOptions | Core.AllDocsOptions):
Promise<Core.AllDocsResponse<Content & Model>>;