Elalfy74

Results 2 comments of Elalfy74

Edited I found an easier way in index.js ``` import 'express-async-errors'; const app = express(); if (process.env.NODE_ENV !== 'test') { connectToDB().then(() => { app.listen(port, () => { logger.info(`Running at Port...

My solution work for all ['true', 'false', true, false] also returns boolean type ```typescript const booleans = ['true', 'false', true, false]; const BooleanOrBooleanStringSchema = z .any() .refine((val) => booleans.includes(val), {...