Defjs
Core

struct.boolean

Struct that accepts boolean values.

@defjs/core · Function

Signature

function boolean(): Struct<boolean, boolean>;

Accepts true and false only. Other values, including 'true' and 1, fail with invalid_type.

Edit this page on GitHub
Released under the MIT License. · Copyright © 2026 MunMunMiao