UNPKG

670 BTypeScriptView Raw
1export declare enum HostType {
2 domain = "domain",
3 socket = "socket",
4 IPv4 = "IPv4",
5 IPv6 = "IPv6"
6}
7export interface IEncodingOptions {
8 encodeDollar?: boolean;
9 plusForSpace?: boolean;
10 passwordHash?: boolean | string;
11}
12export interface IHost {
13 name?: string;
14 port?: number;
15 type?: HostType;
16}
17export interface IParsedHost extends IHost {
18 toString(options?: IEncodingOptions): string;
19}
20export interface IConnectionDefaults {
21 protocol?: string;
22 hosts?: Array<IHost | null>;
23 user?: string;
24 password?: string;
25 path?: string[];
26 params?: {
27 [name: string]: any;
28 };
29}