mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
PouchDB: Add deterministic_revs option to LocalDatabaseConfiguration (#40226)
* Update pouchdb-core Add `deterministic_revs` option to LocalDatabaseConfiguration. Documentation here: https://pouchdb.com/api.html#create_database * Update pouchdb-core * Update index.d.ts Property needs to be optional
This commit is contained in:
committed by
Pranav Senthilnathan
parent
3a131e39af
commit
8c1bc9265b
6
types/pouchdb-core/index.d.ts
vendored
6
types/pouchdb-core/index.d.ts
vendored
@@ -587,6 +587,12 @@ declare namespace PouchDB {
|
||||
* and can be helpful for URL-based or file-based LevelDOWN path names.
|
||||
*/
|
||||
prefix?: string;
|
||||
/**
|
||||
* Use a md5 hash to create a deterministic revision number for documents.
|
||||
* Setting it to false will mean that the revision number will be a random UUID.
|
||||
* Defaults to true.
|
||||
*/
|
||||
deterministic_revs?: boolean;
|
||||
}
|
||||
|
||||
interface RemoteDatabaseConfiguration extends CommonDatabaseConfiguration {
|
||||
|
||||
Reference in New Issue
Block a user