()
| 344 | return this._refinement((val, ctx) => { |
| 345 | const result = check(val); |
| 346 | const setError = () => |
| 347 | ctx.addIssue({ |
| 348 | code: ZodIssueCode.custom, |
| 349 | ...getIssueProperties(val), |
| 350 | }); |
| 351 | if (typeof Promise !== "undefined" && result instanceof Promise) { |
| 352 | return result.then((data) => { |
| 353 | if (!data) { |
no test coverage detected