diff --git a/sequelize/sequelize-tests.ts b/sequelize/sequelize-tests.ts index 15010e5447f75d..b7a04761f0c773 100644 --- a/sequelize/sequelize-tests.ts +++ b/sequelize/sequelize-tests.ts @@ -486,6 +486,7 @@ Sequelize.CHAR( 12 ).BINARY; Sequelize.CHAR.BINARY; Sequelize.BOOLEAN; Sequelize.DATE; +Sequelize.DATE(6); Sequelize.UUID; Sequelize.UUIDV1; Sequelize.UUIDV4; diff --git a/sequelize/sequelize.d.ts b/sequelize/sequelize.d.ts index 8f803a8b64bb19..0bf3d6d9e24340 100644 --- a/sequelize/sequelize.d.ts +++ b/sequelize/sequelize.d.ts @@ -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 { }