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.