mapper icon indicating copy to clipboard operation
mapper copied to clipboard

Publish new release to fix nestjs InjectMapper decorator

Open ttshivers opened this issue 1 year ago • 1 comments

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

ttshivers avatar Apr 09 '23 20:04 ttshivers

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

tadavid-cae avatar Apr 21 '23 07:04 tadavid-cae