Files
reverse-engineering-anything/src/cli/domainInput.ts
T
morluto 07c5a54fee refactor(cli): import zod directly instead of through incur (#11655)
* refactor(cli): import zod directly instead of through incur

* fix(verify): count incur z imports from declarations, not comment or string text
2026-11-16 10:37:43 +08:00

10 lines
358 B
TypeScript

import { z } from "zod";
/**
* CLI argv keeps the domain field's inbound text. A service transform still
* runs when that service parses the same field, and `--schema` matches the
* input view advertised by tools/list.
*/
export const cliDomainInput = (field: z.ZodType): z.ZodType =>
field instanceof z.ZodPipe ? (field.def.in as z.ZodType) : field;