Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common decorators #24

Open
XanderEmu opened this issue Jan 17, 2020 · 0 comments
Open

Common decorators #24

XanderEmu opened this issue Jan 17, 2020 · 0 comments

Comments

@XanderEmu
Copy link

XanderEmu commented Jan 17, 2020

How about extending this project with some new decorators that would make use of the fact that both libraries are available?

For example: instead of using @Type(() => Foo) and @IsInstance(Foo, {each: true}) and @IsArray() one could use a single decorator like @IsArrayOf(Foo) which would configure both class-transformer and class-validator with less code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants