Update types

This commit is contained in:
Erik 2023-07-13 19:10:43 +03:00
parent f0a124bee6
commit e3d81a581a
Signed by: Navy.gif
GPG Key ID: 2532FBBB61C65A68

View File

@ -13,9 +13,12 @@ type Credentials = {
host: string, host: string,
port: number, port: number,
database: string, database: string,
node: string
} }
type ExtendedCredentials = {
node: string
} & Credentials
export type MariaOptions = { export type MariaOptions = {
load?: boolean, load?: boolean,
cluster?: PoolClusterConfig, cluster?: PoolClusterConfig,
@ -86,7 +89,7 @@ class MariaDB
#load: boolean; #load: boolean;
#config: MariaOptions; #config: MariaOptions;
#credentials: Credentials[]; #credentials: ExtendedCredentials[];
#cluster: boolean; #cluster: boolean;
#pool: PoolCluster | null; #pool: PoolCluster | null;
#nodes: Node[]; #nodes: Node[];