Libraries
    Preparing search index...

    Type Alias OptionValidationResults<TOptions>

    OptionValidationResults: {
        [K in keyof TOptions]: TOptions[K] extends UnionSchemaBuilder<
            infer UOptions extends
                readonly SchemaBuilder<any, any, any, any, any>[],
            any,
            any,
        >
            ? UnionSchemaValidationResult<InferType<TOptions[K]>, UOptions>
            : TOptions[K] extends ObjectSchemaBuilder<any, any, any, any>
                ? ObjectSchemaValidationResult<InferType<TOptions[K]>, TOptions[K]>
                : ValidationResult<InferType<TOptions[K]>>
    }

    Mapped tuple type that converts a tuple of SchemaBuilder options into a tuple of their corresponding validation results. Union schema options get UnionSchemaValidationResult with recursive getNestedErrors navigation; object schema options get ObjectSchemaValidationResult; other types get ValidationResult.

    Type Parameters

    • TOptions extends readonly SchemaBuilder<any, any, any, any, any>[]