How to use HasManyAddAssociationMixin when Typescript uses ModelDefine definition
Regarding the use of ModelDefine in the document, how should I add a statement to Note through HasManyAddAssociationMixin to prevent Typescript checking errors:

This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
Have you tried the following?
const Node: ModelDefined<NoteAttributes, NoteCreationAttributes> & {
// extra types here
addSomething: HasManyAddAssociationMixin
} = sequelize.define(...)
I'm having this same question. Adding the declare setSomething: HasManySetAssociationsMixin<Model, primaryKeyType> only works when I create data in the repository, if I try to create the data in the service layer, it says that setSomething does not exist on type ModelOutputAttributes.
How to implement it correctly?