Discriminated union for validation results.
ValidationPipe<T, E> represents either a successful validation with data of type T, or a failed validation with an array of errors of type E. Use the success discriminant to narrow the type.
ValidationPipe<T, E>
T
E
success
Success data type
Error type
Jeongho Nam - https://github.com/samchon
Discriminated union for validation results.
ValidationPipe<T, E>represents either a successful validation with data of typeT, or a failed validation with an array of errors of typeE. Use thesuccessdiscriminant to narrow the type.