From aecb8f95643e6d19da9584193d00d06a836a2a3d Mon Sep 17 00:00:00 2001 From: Justin Sprigg Date: Thu, 31 May 2018 12:44:43 +1000 Subject: [PATCH] Add type array to dateStrings --- types/mysql/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/mysql/index.d.ts b/types/mysql/index.d.ts index 555fc703bf..3be47cd100 100644 --- a/types/mysql/index.d.ts +++ b/types/mysql/index.d.ts @@ -397,10 +397,10 @@ export interface ConnectionConfig extends ConnectionOptions { bigNumberStrings?: boolean; /** - * Force date types (TIMESTAMP, DATETIME, DATE) to be returned as strings rather then inflated into JavaScript Date - * objects. (Default: false) + * Force date types (TIMESTAMP, DATETIME, DATE) to be returned as strings rather then inflated into JavaScript + * Date objects. Can be true/false or an array of type names to keep as strings. (Default: false) */ - dateStrings?: boolean; + dateStrings?: boolean | (('TIMESTAMP' | 'DATETIME' | 'DATE')[]);; /** * This will print all incoming and outgoing packets on stdout.