()
| 1317 | } |
| 1318 | |
| 1319 | get maxLength() { |
| 1320 | let max: number | null = null; |
| 1321 | for (const ch of this._def.checks) { |
| 1322 | if (ch.kind === "max") { |
| 1323 | if (max === null || ch.value < max) max = ch.value; |
| 1324 | } |
| 1325 | } |
| 1326 | return max; |
| 1327 | } |
| 1328 | |
| 1329 | static create = (params?: RawCreateParams & { coerce?: true }): ZodString => { |
| 1330 | return new ZodString({ |
no outgoing calls
no test coverage detected