sequelize-typescript icon indicating copy to clipboard operation
sequelize-typescript copied to clipboard

Question: Decorators in Typescript >= 5.0

Open DavFeng1 opened this issue 1 year ago • 2 comments

Is there plans to support typesciprt 5.0 decorators? Should we plan to use experimentalDecorators for the foreseeable future?

DavFeng1 avatar May 09 '23 11:05 DavFeng1

@ephys I think you can answer what the plans are for sequelize v7 (either already in the beta or in a later minor release)

For context; the functionality from sequelize-typescript is a part of the 'regular' sequelize package starting with v7 (the next major release). Don't expect that support will be added in the current major release since progress on v7 is quite far

WikiRik avatar May 09 '23 12:05 WikiRik

There are plans for supporting the new decorators format (sometimes after Sequelize 7 is stable). When we imported the decorators in @sequelize/core, we put all decorators that use the old format under @sequelize/core/decorators-legacy to be able to support the new decorators under @sequelize/core/decorators

ephys avatar May 09 '23 14:05 ephys