UNPKG

ts-buildkit

Version:

Typescript Build Kit, this is generic build kit package created by Ahsan Mahmood (https://aoneahsan.com), this package is generic and contains code which will work both on frontend (ReactJs/typescript/etc) as well as on backend (nodejs/typescript/etc). pl

2 lines 256 B
'use strict';var zod=require('zod');function i(e){return zod.z.number().superRefine((u,n)=>{e.includes(u)||n.addIssue({code:"invalid_value",values:[...e],input:u});})}exports.numericEnum=i;//# sourceMappingURL=index.js.map //# sourceMappingURL=index.js.map