From 4a28a23e20ba8de89e02f6bdd241f0dd939adda1 Mon Sep 17 00:00:00 2001 From: Nicolas Dextraze Date: Tue, 22 Nov 2016 09:20:55 -0800 Subject: [PATCH] Fixing constructor/class definition for GossipSeed and UserCrendentials --- index.d.ts | 9 ++++----- package.json | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/index.d.ts b/index.d.ts index 2d0fe1c..ffd547f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -29,8 +29,8 @@ export interface TcpEndPoint { hostname: string; } -export interface GossipSeed { - new (endPoint: TcpEndPoint, hostHeader: string); +export class GossipSeed { + constructor(endPoint: TcpEndPoint, hostHeader: string); readonly endPoint: TcpEndPoint; readonly hostHeader: string; } @@ -41,9 +41,8 @@ export interface Logger { error(fmt: string, ...args: any[]): void; } -export interface UserCredentials { - new (username: string, password: string); - +export class UserCredentials { + constructor(username: string, password: string); readonly username: string; readonly password: string; } diff --git a/package.json b/package.json index eb1dc39..7ac4149 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eventstore-node", - "version": "0.0.13", + "version": "0.0.15", "description": "A port of the EventStore .Net ClientAPI to Node.js", "main": "index.js", "types": "index.d.ts",