Skip to content

bool

const bool: TypedPrimitive<boolean>

Boolean primitive. Accepts "true", "1", "false", "0" (case-insensitive).

Throws:

When the raw value fails this primitive’s validation.

Learn: Primitives and builders

Last updated: