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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user