Skip to content

Commit

Permalink
Merge pull request DefinitelyTyped#8030 from AJamesPhillips/master
Browse files Browse the repository at this point in the history
Sequelize DATE accepts length
  • Loading branch information
horiuchi committed Feb 10, 2016
2 parents d8b1685 + 1b6bcc7 commit 1a5b2a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions sequelize/sequelize-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ Sequelize.CHAR( 12 ).BINARY;
Sequelize.CHAR.BINARY;
Sequelize.BOOLEAN;
Sequelize.DATE;
Sequelize.DATE(6);
Sequelize.UUID;
Sequelize.UUIDV1;
Sequelize.UUIDV4;
Expand Down
10 changes: 9 additions & 1 deletion sequelize/sequelize.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,15 @@ declare module "sequelize" {

interface DataTypeTime extends DataTypeAbstract { }

interface DataTypeDate extends DataTypeAbstract { }
interface DataTypeDate extends DataTypeAbstract {

/**
* Length of decimal places of time
*/
( options? : { length?: number } ) : DataTypeDate;
( length? : number) : DataTypeDate;

}

interface DataTypeDateOnly extends DataTypeAbstract { }

Expand Down

0 comments on commit 1a5b2a7

Please sign in to comment.