Removed HostStatic and HostMapStatic

Those classes are not exposed and can not be instantiated from user code
This commit is contained in:
Michal Kaminski
2019-02-05 23:07:14 +01:00
parent 5d77f5e51f
commit 8aa0f3f0e0
+1 -11
View File
@@ -499,8 +499,6 @@ export namespace types {
}
export let Client: ClientStatic;
export let Host: HostStatic;
export let HostMap: HostMapStatic;
export let Encoder: EncoderStatic;
export interface ClientOptions {
@@ -611,14 +609,10 @@ export interface Client extends events.EventEmitter {
stream(query: string, params?: any, options?: QueryOptions, callback?: Callback): NodeJS.ReadableStream;
}
export interface HostStatic {
new (address: string, protocolVersion: number, options: ClientOptions): Host;
}
export interface Host extends events.EventEmitter {
address: string;
cassandraVersion: string;
dataCenter: string;
datacenter: string;
rack: string;
tokens: string[];
@@ -627,10 +621,6 @@ export interface Host extends events.EventEmitter {
isUp(): boolean;
}
export interface HostMapStatic {
new (): HostMap;
}
export interface HostMap extends events.EventEmitter {
length: number;