MCPcopy
hub / github.com/colinhacks/zod / parseStr

Function parseStr

packages/zod/src/v4/core/schemas.ts:1994–1997  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

1992 const normalized = _normalized.value;
1993
1994 const parseStr = (key: string) => {
1995 const k = util.esc(key);
1996 return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
1997 };
1998
1999 doc.write(`const input = payload.value;`);
2000

Callers 1

generateFastpassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected