From e3d81a581a929cc6dbeebabb8f30e2ac9596ae26 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Thu, 13 Jul 2023 19:10:43 +0300 Subject: [PATCH] Update types --- src/MariaDB.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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[];