( refinement: (e: E) => e is T, annotations?: Schema.Annotations.Filter )
| 1556 | } |
| 1557 | |
| 1558 | function runRefinement<T extends E, E>( |
| 1559 | refinement: (e: E) => e is T, |
| 1560 | annotations?: Schema.Annotations.Filter |
| 1561 | ): (e: E) => Result.Result<T, SchemaIssue.Issue> { |
| 1562 | return (e) => SchemaAST.runChecks([SchemaAST.makeFilterByGuard(refinement, annotations)], e) as any |
| 1563 | } |