Skip to content

Commit

Permalink
fix(types): add decimalNumbers to createConnection/createPool typings.
Browse files Browse the repository at this point in the history
…fixes #1803
  • Loading branch information
sidorares committed Apr 16, 2023
1 parent d6be503 commit 6402e3a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions typings/mysql/lib/Connection.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 6402e3a

Please sign in to comment.