zod icon indicating copy to clipboard operation
zod copied to clipboard

add `ZodNumber.isFinite`, make `ZodNumber.isInt` true if `.multipleOf(int)`.

Open igalklebanov opened this issue 2 years ago • 1 comments

Hey 👋

  • Forgot to add .isFinite @ #1546.

  • A multiple of an integer is an integer, so let's make .isInt truthy in that case. This might allow people to ditch .int() if all they need is .multipleOf(int) but had something that uses isInt.

igalklebanov avatar Dec 17 '22 12:12 igalklebanov

Deploy Preview for guileless-rolypoly-866f8a ready!

Built without sensitive environment variables

Name Link
Latest commit 8af7f2510d1d76988cd65fc276abb06730c00bf1
Latest deploy log https://app.netlify.com/sites/guileless-rolypoly-866f8a/deploys/639db3db8cf37d000910d04b
Deploy Preview https://deploy-preview-1714--guileless-rolypoly-866f8a.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Dec 17 '22 12:12 netlify[bot]

I dig it. Thanks!

colinhacks avatar Dec 24 '22 06:12 colinhacks