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

nkurihar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-client-node.git


The following commit(s) were added to refs/heads/master by this push:
     new f39734a  Add type definition for disableReplication property (#151)
f39734a is described below

commit f39734a83ac2fd479fffb4b55c810fe60e673d85
Author: Masahiro Sakamoto <[email protected]>
AuthorDate: Fri Apr 16 14:30:43 2021 +0900

    Add type definition for disableReplication property (#151)
---
 index.d.ts | 1 +
 tstest.ts  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/index.d.ts b/index.d.ts
index 7e57d74..adf5247 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -124,6 +124,7 @@ export interface ProducerMessage {
   replicationClusters?: string[];
   deliverAfter?: number;
   deliverAt?: number;
+  disableReplication?: boolean;
 }
 
 export class Message {
diff --git a/tstest.ts b/tstest.ts
index dfa2a3d..2c457ba 100644
--- a/tstest.ts
+++ b/tstest.ts
@@ -190,6 +190,7 @@ import Pulsar = require('./index');
     ],
     deliverAfter: 30000,
     deliverAt: Date.now() + 30000,
+    disableReplication: false,
   });
 
   const messageIdString: string = messageId1.toString();

Reply via email to