mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Removed HostStatic and HostMapStatic
Those classes are not exposed and can not be instantiated from user code
This commit is contained in:
Vendored
+1
-11
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user