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 Jan 31, 2023
1 parent 24126ab commit 1e747cd
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 1e747cd

Please sign in to comment.