MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / semanticBoolean

Function semanticBoolean

source code/utils/semanticBoolean.ts:24–31  ·  view source on GitHub ↗
(
  inner: T = z.boolean() as unknown as T,
)

Source from the content-addressed store, hash-verified

22 * semanticBoolean(z.boolean().default(false)) → boolean
23 */
24export function semanticBoolean<T extends z.ZodType>(
25 inner: T = z.boolean() as unknown as T,
26) {
27 return z.preprocess(
28 (v: unknown) => (v === 'true' ? true : v === 'false' ? false : v),
29 inner,
30 )
31}

Callers 7

PowerShellTool.tsxFile · 0.85
CronCreateTool.tsFile · 0.85
types.tsFile · 0.85
TaskOutputTool.tsxFile · 0.85
BashTool.tsxFile · 0.85
GrepTool.tsFile · 0.85
SendMessageTool.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected