Doubter - v5.1.1
    Preparing search index...

    Type Alias RefinePredicate<Value, RefinedValue, Param>

    RefinePredicate: (
        value: Value,
        param: Param,
        options: ParseOptions,
    ) => value is RefinedValue

    A narrowing predicate that refines the value type.

    If a ValidationError is thrown, its issues are captured and incorporated into a parsing result. Throw if refinement cannot be performed, and you want to abort the operation.

    Type Parameters

    • Value = any

      The value to refine.

    • RefinedValue extends Value = Value

      The refined value.

    • Param = any

      The additional param that was associated with the operation.

    Type declaration