@metreeca/core - v0.9.22
    Preparing search index...

    Function any

    • Requires at least one validator to pass.

      Reports a violation only if every validator fails, as a bare message. The reports of the individual alternatives are not surfaced: a failed alternative is a reading the value did not take, not a part of it a report could key against.

      Type Parameters

      • T

        The type of the validated value

      Parameters

      • ...validators: readonly Modal<Validator<T>>[]

        The alternative validators; omitted or disabled validators are ignored

      Returns Validator<T>

      A validator reporting a violation if no enabled validator passes