From 6402e3ad3334cef8225e928749693459b1e48dab Mon Sep 17 00:00:00 2001 From: Andrey Sidorov Date: Tue, 31 Jan 2023 18:53:53 +1100 Subject: [PATCH] fix(types): add decimalNumbers to createConnection/createPool typings. fixes #1803 --- 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 */