This is an automated email from the ASF dual-hosted git repository.

jan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git


The following commit(s) were added to refs/heads/master by this push:
     new d90868aff Fix active event handler does not expect parameters in 
replication guide
d90868aff is described below

commit d90868affa7e9c01d1f0753628081704063de1e8
Author: Armin Becher <[email protected]>
AuthorDate: Sat Feb 7 22:15:53 2026 +0100

    Fix active event handler does not expect parameters in replication guide
    
    Typescript complains about the non existing function becausethe signature 
looks like this:
    
    `on(event: "active", listener: () => any): this;`
    
    Removing the variable helps to copy-paste the code without complains.
---
 docs/_guides/replication.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/_guides/replication.md b/docs/_guides/replication.md
index 893080f19..0b4009913 100644
--- a/docs/_guides/replication.md
+++ b/docs/_guides/replication.md
@@ -118,7 +118,7 @@ localDB.sync(remoteDB, {
   // yo, something changed!
 }).on('paused', function (info) {
   // replication was paused, usually because of a lost connection
-}).on('active', function (info) {
+}).on('active', function () {
   // replication was resumed
 }).on('error', function (err) {
   // totally unhandled error (shouldn't happen)

Reply via email to