( filter: (input: T, ast: AST, options: ParseOptions) => Schema.FilterOutput, annotations?: Schema.Annotations.Filter | undefined, aborted: boolean = false )
| 3212 | |
| 3213 | /** @internal */ |
| 3214 | export function makeFilter<T>( |
| 3215 | filter: (input: T, ast: AST, options: ParseOptions) => Schema.FilterOutput, |
| 3216 | annotations?: Schema.Annotations.Filter | undefined, |
| 3217 | aborted: boolean = false |
| 3218 | ): Filter<T> { |
| 3219 | return new Filter( |
| 3220 | (input, ast, options) => SchemaIssue.normalizeFilterOutput(ast, filter(input, ast, options), input, options), |
| 3221 | annotations, |
| 3222 | aborted |
| 3223 | ) |
| 3224 | } |
| 3225 | |
| 3226 | /** @internal */ |
| 3227 | export function makeFilterByGuard<T extends E, E>( |
no test coverage detected