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

Method ip

packages/zod/src/v3/types.ts:1100–1102  ·  view source on GitHub ↗
(options?: string | { version?: IpVersion; message?: string | undefined })

Source from the content-addressed store, hash-verified

1098 }
1099
1100 ip(options?: string | { version?: IpVersion; message?: string | undefined }) {
1101 return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
1102 }
1103
1104 cidr(options?: string | { version?: IpVersion; message?: string | undefined }) {
1105 return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });

Callers 1

string.test.tsFile · 0.80

Calls 1

_addCheckMethod · 0.95

Tested by

no test coverage detected