# bool

> **bool**(`value`): [`BoolValue`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/main/type-aliases/boolvalue/)

Defined in: [src/attr/values.ts:62](https://github.com/Arkiv-Network/arkiv-sdk-js/blob/488e08c3687cc5cfaf5dd8ab0fe0f7fed40930bb/src/attr/values.ts#L62)

A boolean.

`bool` is the one type that may also be written bare — `{ flagged: true }` and
`{ flagged: bool(true) }` are the same attribute.

## Parameters

### value

`boolean`

## Returns

[`BoolValue`](https://stage.docs.arkiv.network/typescript-sdk/api-reference/main/type-aliases/boolvalue/)

## Example

```ts
bool(true) // { type: "bool", value: true }
```