nartc / mapper

🔥 An Object-Object AutoMapper for TypeScript 🔥
https://automapperts.netlify.app/
MIT License
978 stars 86 forks source link

Publish new release to fix nestjs InjectMapper decorator #542

Open ttshivers opened 1 year ago

ttshivers commented 1 year ago

Is your feature request related to a problem? Please describe.

Can a new release be published to fix the nestjs InjectMapper decorator type. This blocks nestjs projects from updating to typescript 5 as it now has tighter parameter decorator checking. https://github.com/microsoft/TypeScript/issues/52435

It was fixed in nestjs in https://github.com/nestjs/nest/pull/10970. The main branch has already updated nestjs to a version with this but a release hasn't been made since then.

Describe the solution you'd like

Can a new release be published to fix the nestjs InjectMapper decorator type.

Describe alternatives you've considered

I could write my own wrapper decorator to fix the typing but having a new release would be ideal.

Additional context

No response

tadavid-cae commented 1 year ago

@ttshivers temp solution: change @InjectMapper() to @Inject(getMapperToken())