(fn: core.CheckFn<O>, params?: string | core.$ZodCustomParams)
| 1772 | // custom checks |
| 1773 | // @__NO_SIDE_EFFECTS__ |
| 1774 | export function check<O = unknown>(fn: core.CheckFn<O>, params?: string | core.$ZodCustomParams): core.$ZodCheck<O> { |
| 1775 | const ch = new core.$ZodCheck({ |
| 1776 | check: "custom", |
| 1777 | ...util.normalizeParams(params), |
| 1778 | }); |
| 1779 | |
| 1780 | ch._zod.check = fn; |
| 1781 | return ch; |
| 1782 | } |
| 1783 | |
| 1784 | // ZodCustom |
| 1785 | // custom schema |
no outgoing calls
no test coverage detected