@zod-plugins/numeric
v0.0.1
Published
This library is a extend for z.ZodString to check whether the string value is numeric
Downloads
6
Readme
numeric
This library is a extend for z.ZodString to check whether the string value is numeric
Usage
z.string().numeric();
it's just a syntactic sugar for
z.string().regex(/^\d+$/)