(data, pipedFromCtx, onFail)
| 1219 | })(intersectionj0sv370oqte88) |
| 1220 | var create1q5hta0h0lh5t = ([allows], id, holes = []) => { |
| 1221 | const validator = (data, pipedFromCtx, onFail) => |
| 1222 | allows(data) ? |
| 1223 | (allows.t?.(data) ?? data) |
| 1224 | : foundErrors( |
| 1225 | allows, |
| 1226 | data, |
| 1227 | pipedFromCtx ? errors => pipedFromCtx.piped(errors) : onFail |
| 1228 | ) |
| 1229 | validator.allows = freeze(allows) |
| 1230 | validator.withContext = freeze(context => withContextOf2(validator, context)) |
| 1231 | return holdHoles(freeze(validator), id, holes) |
nothing calls this directly
no test coverage detected