werkbank
    Preparing search index...
    • Maps a Valibot schema type to a corresponding HTML input type.

      Type Parameters

      • S extends BaseSchema<any, any, any> | ArraySchema<any, any>

      Parameters

      • schema: S

        The schema to map.

      • OptionalcurrentType: InputType

        The current resolved type (used for recursion).

      Returns InputType

      The HTML input type string.

      Handles nested arrays and pipes to determine the most appropriate input type.