Open duki994 opened 1 year ago
We would like to see this merged as it is currently causing issues in our TypeScript/ES2022 target codebase. What needs to be done to see this included?
We would like to see this merged as it is currently causing issues in our TypeScript/ES2022 target codebase. What needs to be done to see this included?
Haven't worked in JS/TS ecosystem for a while.
I'll commit some of my OSS time to fix the issues as this modification had so many use cases across all TS projects I ever did.
Summary
declare
all class fields … https://sequelize.org/docs/v6/core-concepts/model-basics/#caveat-with-public-class-fieldsDescription
All model classes were generated without
declare
keyword which made TypeScript to shadow Sequelize generated models.Future plans
Create a PR with changes to code to use new
InferAtributes
andInferCreationAttributes