Const
A Zod schema for use with boolean query parameters since z.coerce.boolean() treats any truthy value as true.
z.coerce.boolean()
true
.transform((value) => value === "true") causes inference issues in controllers.
.transform((value) => value === "true")
A Zod schema for use with boolean query parameters since
z.coerce.boolean()
treats any truthy value astrue
..transform((value) => value === "true")
causes inference issues in controllers.