(description: string)
| 1694 | |
| 1695 | // @__NO_SIDE_EFFECTS__ |
| 1696 | export function describe<T>(description: string): checks.$ZodCheck<T> { |
| 1697 | const ch = new checks.$ZodCheck({ check: "describe" }); |
| 1698 | ch._zod.onattach = [ |
| 1699 | (inst) => { |
| 1700 | const existing = registries.globalRegistry.get(inst) ?? {}; |
| 1701 | registries.globalRegistry.add(inst, { ...existing, description }); |
| 1702 | }, |
| 1703 | ]; |
| 1704 | ch._zod.check = () => {}; // no-op check |
| 1705 | return ch; |
| 1706 | } |
| 1707 | |
| 1708 | // @__NO_SIDE_EFFECTS__ |
| 1709 | export function meta<T>(metadata: registries.GlobalMeta): checks.$ZodCheck<T> { |
no test coverage detected