You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: