@vinejs/vine - v4.2.0
    Preparing search index...

    Type Alias PropertiesToOptional<T>

    PropertiesToOptional: {
        [K in keyof T]: T[K] extends {
            optional: () => infer R extends SchemaTypes;
        }
            ? R
            : T[K]
    }

    Utility type to convert object with schema properties to optional schemas.

    Type Parameters

    • T extends Record<string, SchemaTypes>

      Record of property names to their schema types