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

Method step

packages/zod/src/v4/classic/schemas.ts:982–982  ·  view source on GitHub ↗

@deprecated Use `.multipleOf()` instead.

(value: number, params?: string | core.$ZodCheckMultipleOfParams)

Source from the content-addressed store, hash-verified

980 multipleOf(value: number, params?: string | core.$ZodCheckMultipleOfParams): this;
981 /** @deprecated Use `.multipleOf()` instead. */
982 step(value: number, params?: string | core.$ZodCheckMultipleOfParams): this;
983
984 /** @deprecated In v4 and later, z.number() does not allow infinite values by default. This is a no-op. */
985 finite(params?: unknown): this;

Callers 2

number.test.tsFile · 0.80
number.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected