Skip to content

Commit 1e747cd

Browse files
committed
fix(types): add decimalNumbers to createConnection/createPool typings. fixes #1803
1 parent 24126ab commit 1e747cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

typings/mysql/lib/Connection.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ import {EventEmitter} from 'events';
1111
declare namespace Connection {
1212

1313
export interface ConnectionOptions {
14+
15+
/**
16+
* DECIMAL and NEWDECIMAL types will be returned as numbers if this option is set to `true` ( default: `false`).
17+
*/
18+
decimalNumbers?: boolean;
19+
1420
/**
1521
* The MySQL user to authenticate as
1622
*/

0 commit comments

Comments
 (0)