From b96794d8e76b25dd9d29cb92fc1673c793ab4ace Mon Sep 17 00:00:00 2001
From: Will Hunt <will@half-shot.uk>
Date: Sun, 27 Jan 2019 16:50:31 +0000
Subject: [PATCH] Add a type for SQLTYPES

---
 src/db/connector.ts | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/db/connector.ts b/src/db/connector.ts
index fc6b74f..d247db6 100644
--- a/src/db/connector.ts
+++ b/src/db/connector.ts
@@ -14,12 +14,14 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+type SQLTYPES = number | boolean | string | null;
+
 export interface ISqlCommandParameters {
-    [paramKey: string]: number | boolean | string | Promise<number | boolean | string>;
+    [paramKey: string]: SQLTYPES | Promise<SQLTYPES>;
 }
 
 export interface ISqlRow {
-    [key: string]: number | boolean | string;
+    [key: string]: SQLTYPES;
 }
 
 export interface IDatabaseConnector {
-- 
GitLab