Files
DefinitelyTyped/pouchdb-replication/pouchdb-replication-tests.ts
Jakub Navrátil 126e55128b Added some missing api from 6.0.9 version:
PouchDB.replicate()
PouchDB.sync()
PouchDB.defaults()
PouchDB.on() Events
db.info()
db.sync()
db.replicate.to()|from()
db.changes()
db.close()
db.putAttachment()
db.getAttachment()
db.removeAttachment()

Also updated many existing api options and responses

Added replication plugin definitions
Added find plugin definitions v0.10.0
2016-11-25 13:40:04 -06:00

19 lines
460 B
TypeScript

/// <reference path="./index.d.ts" />
namespace PouchDBReplicationTests {
/** @todo make some real tests */
function testReplication() {
type Model = { foo: number };
const db = new PouchDB<Model>();
db.replicate.to('').then((res: PouchDB.Replication.ReplicationResultComplete<Model>) => {
});
db.replicate.from('').then((res: PouchDB.Replication.ReplicationResultComplete<Model>) => {
});
}
}