Documentation
    Preparing search index...

    Successful validation result.

    Indicates the input matches the expected type. The validated data is available in data with full type information.

    interface ISuccess<T = unknown> {
        data: T;
        success: true;
    }

    Type Parameters

    • T = unknown

      The validated type

    Index

    Properties

    Properties

    data: T

    The validated data with correct type.

    The original input after successful validation. TypeScript will narrow this to type T when success is true.

    success: true

    Success discriminator.

    Always true for successful validations. Use this to narrow the type before accessing data.