0.0.1 • Published 2 years ago
@zod-plugins/numeric v0.0.1
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+$/)
0.0.1
2 years ago