MCPcopy Index your code
hub / github.com/CapSoftware/Cap / boolString

Function boolString

packages/env/server.ts:4–10  ·  view source on GitHub ↗
(_default = false)

Source from the content-addressed store, hash-verified

2import { z } from "zod";
3
4const boolString = (_default = false) =>
5 z
6 .string()
7 .optional()
8 .default(_default ? "true" : "false")
9 .transform((v) => v === "true")
10 .pipe(z.boolean());
11
12function createServerEnv() {
13 return createEnv({

Callers 1

createServerEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected