sequelize-typescript
sequelize-typescript copied to clipboard
Missing keepDefaultTimezone field in SequelizeOptions interface
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
}