Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/validators/blank"

Index

Functions

Functions

blank

  • Validates that the specified value is blank.

    Blank means:

    • Empty string
    • Empty array
    • undefined
    • null
    • false
    example
    useForm(({ blank }) => ({
      honeypot: [blank()]
    }));

    Type parameters

    • Params

    Parameters

    Returns Validator<Params>

    The validation object.

Generated using TypeDoc