diff --git a/src/MariaDB.ts b/src/MariaDB.ts index c976c69..f853f2b 100644 --- a/src/MariaDB.ts +++ b/src/MariaDB.ts @@ -13,9 +13,12 @@ type Credentials = { host: string, port: number, database: string, - node: string } +type ExtendedCredentials = { + node: string +} & Credentials + export type MariaOptions = { load?: boolean, cluster?: PoolClusterConfig, @@ -86,7 +89,7 @@ class MariaDB #load: boolean; #config: MariaOptions; - #credentials: Credentials[]; + #credentials: ExtendedCredentials[]; #cluster: boolean; #pool: PoolCluster | null; #nodes: Node[];