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

Function _overwrite

packages/zod/src/v4/core/api.ts:1124–1129  ·  view source on GitHub ↗
(tx: (input: T) => T)

Source from the content-addressed store, hash-verified

1122
1123// @__NO_SIDE_EFFECTS__
1124export function _overwrite<T>(tx: (input: T) => T): checks.$ZodCheckOverwrite<T> {
1125 return new checks.$ZodCheckOverwrite({
1126 check: "overwrite",
1127 tx,
1128 }) as checks.$ZodCheckOverwrite<T>;
1129}
1130// normalize
1131// @__NO_SIDE_EFFECTS__
1132export function _normalize(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {})): checks.$ZodCheckOverwrite<string> {

Callers 5

_normalizeFunction · 0.85
_trimFunction · 0.85
_toLowerCaseFunction · 0.85
_toUpperCaseFunction · 0.85
_slugifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected