Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ElricLiu/AutoGPT-Next-Web
/ stringToBoolean
Function
stringToBoolean
src/env/schema.mjs:15–17 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
13
};
14
15
const
stringToBoolean = () => {
16
return
z.preprocess((str) => str ===
"true"
, z.boolean());
17
};
18
const
stringToNumber = () => {
19
return
z.preprocess((str) => Number(str), z.number());
20
};
Callers
1
schema.mjs
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected