mirror of
https://github.com/morluto/rea.git
synced 2026-11-16 11:43:20 +00:00
* refactor(cli): import zod directly instead of through incur * fix(verify): count incur z imports from declarations, not comment or string text
10 lines
358 B
TypeScript
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;
|