(tx: (input: T) => T)
| 1122 | |
| 1123 | // @__NO_SIDE_EFFECTS__ |
| 1124 | export 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__ |
| 1132 | export function _normalize(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {})): checks.$ZodCheckOverwrite<string> { |
no outgoing calls
no test coverage detected