MCPcopy Index your code
hub / github.com/codeaashu/claude-code / semanticBoolean

Function semanticBoolean

src/utils/semanticBoolean.ts:22–29  ·  view source on GitHub ↗
(
  inner: T = z.boolean() as unknown as T,
)

Source from the content-addressed store, hash-verified

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

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