PostProcessorFilter

constructor(filter: <Error class: unknown class><T, out TFilterResult>, result: TResult)(source)

Creates a new post-processor filter by specifying IFilter.Result.Match.result.

Parameters

filter

The sub-filter to evaluate

result

The (constant) result of the transform function


constructor(filter: <Error class: unknown class><T, out TFilterResult>, transform: (input: T, <Error class: unknown class><out TFilterResult>) -> <Error class: unknown class><out TResult>)(source)

Parameters

T

The type the filter accepts

TFilterResult

The type the sub-filter's returns

TResult

The type the filter returns

filter

The sub-filter to evaluate

transform

The function, which transforms the result of evaluate. Its input is both the input of evaluate and the result of filter