From 1f4f0dacf313a2dba45563d78171e6f016096925 Mon Sep 17 00:00:00 2001
From: Ryo Watanabe
Date: Thu, 17 Oct 2024 06:28:17 +0900
Subject: [PATCH] refactor: rename ip version types (#3755)
---
deno/lib/README.md | 4 ++--
deno/lib/types.ts | 2 +-
src/types.ts | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/deno/lib/README.md b/deno/lib/README.md
index 91d97beb1..a721693b1 100644
--- a/deno/lib/README.md
+++ b/deno/lib/README.md
@@ -13,7 +13,7 @@
-
+
@@ -219,7 +219,7 @@ Sponsorship at any level is appreciated and encouraged. If you built a paid prod
diff --git a/deno/lib/types.ts b/deno/lib/types.ts
index df64ed1e9..bb2f08519 100644
--- a/deno/lib/types.ts
+++ b/deno/lib/types.ts
@@ -1000,7 +1000,7 @@ export class ZodString extends ZodType
{
return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) });
}
- ip(options?: string | { version?: "v4" | "v6"; message?: string }) {
+ ip(options?: string | { version?: IpVersion; message?: string }) {
return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
}
diff --git a/src/types.ts b/src/types.ts
index 32845d1d1..5aa30b900 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -1000,7 +1000,7 @@ export class ZodString extends ZodType {
return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) });
}
- ip(options?: string | { version?: "v4" | "v6"; message?: string }) {
+ ip(options?: string | { version?: IpVersion; message?: string }) {
return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
}