Function validate

  • Validates the source emitted value, throws an error when validation doesn't pass

    Returns

    an operator function that validates emitted values

    Type Parameters

    • T

    Parameters

    • params: ValidateParams<T>

      validation: predicate function to test emitted value

      • error: message in case of error

    Returns MonoTypeOperatorFunction<T>

Generated using TypeDoc