MCPcopy
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
15const stringToBoolean = () => {
16 return z.preprocess((str) => str === "true", z.boolean());
17};
18const stringToNumber = () => {
19 return z.preprocess((str) => Number(str), z.number());
20};

Callers 1

schema.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected