Skip to content

Function: isBooleanSchema()

Makaio Framework


Makaio Framework / kernel/cli / 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.

FieldSchema

The Zod schema to inspect.

boolean

true if the schema represents a boolean value.