You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to override createdAt columns type from Date to DateTime(from Luxon). When I went to declare that getting TS error.
TS2612: Property createdAt will overwrite the base property in Model<any, any>. If this is intentional, add an initializer. Otherwise, add a declare modifier or remove the redundant declaration.
Versions
sequelize: 6.35.2,
sequelize-typescript: 2.1.6
typescript: 5.3.3
Issue type
[x ] bug report
feature request
Actual behavior
I'm working on Nest.js project & followed their docs
Expected behavior
Want to be able to override the type of createdAt, updatedAt & deletedAt columns data type
Steps to reproduce
On a fresh Nest.js project try to override/ change data type from Date to DateTime for those columns
Issue
I want to override
createdAt
columns type fromDate
toDateTime
(from Luxon). When I went to declare that getting TS error.Versions
6.35.2
,2.1.6
5.3.3
Issue type
Actual behavior
I'm working on Nest.js project & followed their docs
Expected behavior
Want to be able to override the type of
createdAt
,updatedAt
&deletedAt
columns data typeSteps to reproduce
On a fresh Nest.js project try to override/ change data type from
Date
toDateTime
for those columnsRelated code
The text was updated successfully, but these errors were encountered: