Function base64

  • Ensure that a provided string-based struct is valid base64.

    Returns

    A superstruct validating base64.

    Type Parameters

    • Type extends string

    • Schema

    Parameters

    • struct: Struct<Type, Schema>

      The string based struct.

    • options: Base64Options = {}

      Optional options to specialize base64 validation. See Base64Options documentation.

    Returns Struct<Type, Schema>