sequelize-typescript icon indicating copy to clipboard operation
sequelize-typescript copied to clipboard

Missing keepDefaultTimezone field in SequelizeOptions interface

Open edwardaux opened this issue 2 years ago • 0 comments

Issue

Versions

  • sequelize: 6.6.2
  • sequelize-typescript: 2.1.2
  • typescript: 4.3.5

Issue type

  • [X] bug report
  • [ ] feature request

Actual behavior

A while back, Sequelize added a new flag into their options called keepDefaultTimezone. I went to use that today but realised that the typescript SequelizeOptions interface doesn't include that field.

Expected behavior

I should be able to set this field in the SequelizeOptions object.

Steps to reproduce

Try to set keepDefaultTimezone in SequelizeOptions and get a compile error.

Related code

I'm just in the process of testing this workaround, but I created a simple subclass that adds it to a temporary subclass. I think this will work as a workaround, but haven't confirmed yet.

interface SequelizeOptionsHackyWorkaround extends SequelizeOptions {
    keepDefaultTimezone?: boolean
}

edwardaux avatar Apr 27 '22 00:04 edwardaux