tannerntannern / ts-mixer

A small TypeScript library that provides tolerable Mixin functionality.
MIT License
379 stars 27 forks source link

[Feature request] Support class-transformer #31

Closed kenberkeley closed 3 years ago

kenberkeley commented 3 years ago

At the moment ts-mixer supports class-validator quite well except the scenario requires class-transformer.

For example: https://stackoverflow.com/a/58366367/5172890 , @Type is required for nested collection objects validation.

Online REPL example (link) REPL screenshot
kenberkeley commented 3 years ago

Workaround: suppress the type error by // @ts-ignore or // @ts-expect-error

tannerntannern commented 3 years ago

Try @decorate(Type(() => Tag) as PropertyDecorator). Closing for now. Let me know if this doesn't resolve your issue.