bool
bool(
value):BoolValue
Defined in: src/attr/values.ts:62
A boolean.
bool is the one type that may also be written bare — { flagged: true } and
{ flagged: bool(true) } are the same attribute.
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”Example
Section titled “Example”bool(true) // { type: "bool", value: true }