/** * Discriminated union for validation results. * * `ValidationPipe` 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. * * @author Jeongho Nam - https://github.com/samchon * @template T Success data type * @template E Error type */ export type ValidationPipe = | { success: true; data: T; } | { success: false; errors: E[]; };