Fixing constructor/class definition for GossipSeed and UserCrendentials
This commit is contained in:
parent
eb5f95975b
commit
4a28a23e20
9
index.d.ts
vendored
9
index.d.ts
vendored
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user