Documentation
    Preparing search index...

    Type Alias ValidationPipe<T, E>

    ValidationPipe: { data: T; success: true } | { errors: E[]; success: false }

    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.

    Type Parameters

    • T

      Success data type

    • E

      Error type

    Jeongho Nam - https://github.com/samchon