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 (#1817)
  • Loading branch information
sidorares authored Apr 16, 2023
1 parent d6be503 commit bb48462
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 bb48462

Please sign in to comment.