@cowwoc/requirements - v4.0.12
    Preparing search index...
    • Validates the state of a boolean.

      The returned validator throws an error immediately if a validation fails.

      Type Parameters

      • T extends undefined | null | boolean

        the type the value

      Parameters

      • value: T

        the value

      • name: string

        the name of the value

      Returns BooleanValidator<T>

      validator for the value

      TypeError if name is undefined or null

      RangeError if name is empty