From bb48462db7b83bd4825a3d53e192e5363139ec3c Mon Sep 17 00:00:00 2001 From: Andrey Sidorov Date: Sun, 16 Apr 2023 22:35:32 +1000 Subject: [PATCH] fix(types): add decimalNumbers to createConnection/createPool typings. fixes #1803 (#1817) --- typings/mysql/lib/Connection.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/typings/mysql/lib/Connection.d.ts b/typings/mysql/lib/Connection.d.ts index 08a51b4662..41c37183f0 100644 --- a/typings/mysql/lib/Connection.d.ts +++ b/typings/mysql/lib/Connection.d.ts @@ -11,6 +11,12 @@ import {EventEmitter} from 'events'; declare namespace Connection { export interface ConnectionOptions { + + /** + * DECIMAL and NEWDECIMAL types will be returned as numbers if this option is set to `true` ( default: `false`). + */ + decimalNumbers?: boolean; + /** * The MySQL user to authenticate as */