UNPKG

452 BTypeScriptView Raw
1export declare type ServerNodeRole = "None" | "Promotable" | "Member" | "Rehab";
2export declare class ServerNode {
3 database: string;
4 url: string;
5 clusterTag?: string;
6 serverRole: ServerNodeRole;
7 constructor(opts?: {
8 database?: string;
9 url?: string;
10 clusterTag?: string;
11 });
12 readonly isSecure: boolean;
13 fromJson(json: object): void;
14 static fromJson(json: object): ServerNode;
15}