Fixing constructor/class definition for GossipSeed and UserCrendentials

This commit is contained in:
Nicolas Dextraze 2016-11-22 09:20:55 -08:00
parent eb5f95975b
commit 4a28a23e20
2 changed files with 5 additions and 6 deletions

9
index.d.ts vendored
View File

@ -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;
}

View File

@ -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",