diff --git a/types/hashring/index.d.ts b/types/hashring/index.d.ts
index 96c7cd9dd9..edb6e1c0f2 100644
--- a/types/hashring/index.d.ts
+++ b/types/hashring/index.d.ts
@@ -4,6 +4,8 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
+///
+
declare namespace HashRing {
interface HashRingOptions {
/**
@@ -57,8 +59,11 @@ declare namespace HashRing {
}
declare class HashRing {
- constructor(servers: HashRing.Servers,
- algorithm?: string, options?: Partial);
+ constructor(
+ servers: HashRing.Servers,
+ algorithm?: string | ((key: string) => string | Buffer),
+ options?: Partial,
+ );
/**
* Generates the continuum of server a.k.a as the Hash Ring