mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-22 03:37:53 +08:00
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
19 lines
460 B
TypeScript
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>) => {
|
|
|
|
});
|
|
}
|
|
}
|