From 371218bb836bef1d9b05bb6ac609764e6894e732 Mon Sep 17 00:00:00 2001 From: Dorin Fodor Date: Mon, 16 Dec 2019 18:14:16 +0000 Subject: [PATCH] feat(types): Added PartitionerTypes interface --- types/index.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index 24058b6d..37dde6f4 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -26,6 +26,8 @@ export class KafkaClient extends EventEmitter { export class Producer extends EventEmitter { constructor (client: KafkaClient, options?: ProducerOptions, customPartitioner?: CustomPartitioner); + static PARTITIONER_TYPES: PartitionerTypes; + on (eventName: 'ready', cb: () => any): this; on (eventName: 'error', cb: (error: any) => any): this; @@ -348,3 +350,11 @@ export interface MetadataResponse extends Array