Repository navigation
feat: add model hook decorators - #15333
Conversation
WikiRik
left a comment
There was a problem hiding this comment.
What's the plan for merging the test suite of sequelize-typescript? Since there are two files dedicated to hooks but they also seem to use other decorators; https://github.com/sequelize/sequelize-typescript/blob/master/test/models/Hook.ts and https://github.com/sequelize/sequelize-typescript/blob/master/test/specs/hooks/hooks.spec.ts
|
Associate is missing by accident but there are a bunch of decorators in sequelize-typescript that can't be used. For instance, |
|
Yeah, I assumed so. I only looked at the |
|
Added the missing tests & fixed what failed |
Pull Request Checklist
Description Of Change
This PR adds the
@sequelize/core/decorators-legacyimport. Calleddecorators-legacybecause these decorators are implemented using the legacy decorators proposal. Once TypeScript supports the new decorators proposal, we'll look into adding@sequelize/core/decoratorsThis PR adds the hook decorators from https://github.com/sequelize/sequelize-typescript/. More to come