Add type array to dateStrings

This commit is contained in:
Justin Sprigg
2018-05-31 12:44:43 +10:00
committed by GitHub
parent 21c6ad0a19
commit aecb8f9564
+3 -3
View File
@@ -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.