From 488d8cb57ecd7ca087f9f83889688e3ae320f1ef Mon Sep 17 00:00:00 2001 From: Dima Sabanin Date: Mon, 10 Dec 2018 14:40:02 -0500 Subject: [PATCH 1/3] [pouchdb-replicate] Add missing checkpoint attribute to ReplicateOptions According to the docs (https://pouchdb.com/api.html#sync) and the source code, there's a missing 'checkpoint' attribute in ReplicateOptions. --- types/pouchdb-replication/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/pouchdb-replication/index.d.ts b/types/pouchdb-replication/index.d.ts index a0f581b40a..c5131a4a8b 100644 --- a/types/pouchdb-replication/index.d.ts +++ b/types/pouchdb-replication/index.d.ts @@ -82,6 +82,14 @@ declare namespace PouchDB { * The default delay will never exceed 10 minutes. */ back_off_function?(delay: number): number; + + /** + * Can be used if you want to disable checkpoints on the source, target, or both. + * Setting this option to false will prevent writing checkpoints on both source and target. + * Setting it to source will only write checkpoints on the source. + * Setting it to target will only write checkpoints on the target. + */ + checkpoint?: boolean | 'target' | 'source'; } interface ReplicationEventEmitter extends EventEmitter { From fb832c3d39d78e92bb59988f1b79ffd4495bafb7 Mon Sep 17 00:00:00 2001 From: Dima Sabanin Date: Mon, 10 Dec 2018 14:45:57 -0500 Subject: [PATCH 2/3] Remote trailing spaces --- types/pouchdb-replication/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/pouchdb-replication/index.d.ts b/types/pouchdb-replication/index.d.ts index c5131a4a8b..b2b560a925 100644 --- a/types/pouchdb-replication/index.d.ts +++ b/types/pouchdb-replication/index.d.ts @@ -84,9 +84,9 @@ declare namespace PouchDB { back_off_function?(delay: number): number; /** - * Can be used if you want to disable checkpoints on the source, target, or both. - * Setting this option to false will prevent writing checkpoints on both source and target. - * Setting it to source will only write checkpoints on the source. + * Can be used if you want to disable checkpoints on the source, target, or both. + * Setting this option to false will prevent writing checkpoints on both source and target. + * Setting it to source will only write checkpoints on the source. * Setting it to target will only write checkpoints on the target. */ checkpoint?: boolean | 'target' | 'source'; From fdfb33f7ea505817a2b280e6b7be1e857c01a4a2 Mon Sep 17 00:00:00 2001 From: Dima Sabanin Date: Mon, 10 Dec 2018 16:06:56 -0500 Subject: [PATCH 3/3] Whitespace --- types/pouchdb-replication/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/pouchdb-replication/index.d.ts b/types/pouchdb-replication/index.d.ts index b2b560a925..653a93685d 100644 --- a/types/pouchdb-replication/index.d.ts +++ b/types/pouchdb-replication/index.d.ts @@ -82,7 +82,7 @@ declare namespace PouchDB { * The default delay will never exceed 10 minutes. */ back_off_function?(delay: number): number; - + /** * Can be used if you want to disable checkpoints on the source, target, or both. * Setting this option to false will prevent writing checkpoints on both source and target.