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; hostname: string;
} }
export interface GossipSeed { export class GossipSeed {
new (endPoint: TcpEndPoint, hostHeader: string); constructor(endPoint: TcpEndPoint, hostHeader: string);
readonly endPoint: TcpEndPoint; readonly endPoint: TcpEndPoint;
readonly hostHeader: string; readonly hostHeader: string;
} }
@ -41,9 +41,8 @@ export interface Logger {
error(fmt: string, ...args: any[]): void; error(fmt: string, ...args: any[]): void;
} }
export interface UserCredentials { export class UserCredentials {
new (username: string, password: string); constructor(username: string, password: string);
readonly username: string; readonly username: string;
readonly password: string; readonly password: string;
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "eventstore-node", "name": "eventstore-node",
"version": "0.0.13", "version": "0.0.15",
"description": "A port of the EventStore .Net ClientAPI to Node.js", "description": "A port of the EventStore .Net ClientAPI to Node.js",
"main": "index.js", "main": "index.js",
"types": "index.d.ts", "types": "index.d.ts",