Function: isBooleanSchema()
Makaio Framework / kernel/cli / isBooleanSchema
Function: isBooleanSchema()
Section titled “Function: isBooleanSchema()”isBooleanSchema(
schema):boolean
Defined in: ../../../packages/kernel/src/cli/schema-utils.ts:41
Check if a Zod schema resolves to a boolean type, unwrapping wrappers recursively.
Parameters
Section titled “Parameters”schema
Section titled “schema”The Zod schema to inspect.
Returns
Section titled “Returns”boolean
true if the schema represents a boolean value.