( filter: (input: T, ast: AST, options: ParseOptions) => Schema.FilterOutput, annotations?: Schema.Annotations.Filter | undefined, aborted: boolean = false )
| 4232 | |
| 4233 | /** @internal */ |
| 4234 | export function makeFilter<T>( |
| 4235 | filter: (input: T, ast: AST, options: ParseOptions) => Schema.FilterOutput, |
| 4236 | annotations?: Schema.Annotations.Filter | undefined, |
| 4237 | aborted: boolean = false |
| 4238 | ): Filter<T> { |
| 4239 | return new Filter( |
| 4240 | (input, ast, options) => SchemaIssue.normalizeFilterOutput(ast, filter(input, ast, options), input, options), |
| 4241 | annotations, |
| 4242 | aborted |
| 4243 | ) |
| 4244 | } |
| 4245 | |
| 4246 | /** @internal */ |
| 4247 | export function makeFilterByGuard<T extends E, E>( |
no test coverage detected