From d19aec3371e4a00956be3093a07b5e20150cec1d Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sat, 15 Jul 2023 02:10:56 +0300 Subject: [PATCH] Fix typings & re-export --- index.ts | 2 +- src/MariaDB.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index c0fa09e..5356727 100644 --- a/index.ts +++ b/index.ts @@ -1,4 +1,4 @@ export { MessageBroker, BrokerOptions } from './src/MessageBroker.js'; export { MariaDB, MariaOptions } from './src/MariaDB.js'; export { MongoDB, MongoOptions } from './src/MongoDB.js'; -export { ObjectId, Document, DeleteResult, Collection, Filter } from 'mongodb'; \ No newline at end of file +export { ObjectId, Document, DeleteResult, Collection, Filter, UpdateFilter } from 'mongodb'; \ No newline at end of file diff --git a/src/MariaDB.ts b/src/MariaDB.ts index f853f2b..cab4c64 100644 --- a/src/MariaDB.ts +++ b/src/MariaDB.ts @@ -36,7 +36,7 @@ type MariaError = { sqlMessage:string } & Error -type Values = (string | number | (string | number)[] | (string | number)[][])[] +type Values = ((string | number | null | boolean) | (string | number | null | boolean)[] | (string | number | null | boolean)[][])[]; type QueryOptions = { node?: string, timeout?: number,