> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class: VBoolean<Type, IsOptional>

> Not exported: an exported type refers to it.

[browser](/api/modules/browser).VBoolean

Not exported: an exported type refers to it.

## Type parameters

| Name | Type |
| :- | :- |
| `Type` | `boolean` |
| `IsOptional` | extends [`OptionalProperty`](/api/modules/browser#optionalproperty) = `"required"` |

## Hierarchy

* `BaseValidator`\<`Type`, `IsOptional`>

  ↳ **`VBoolean`**

## Constructors

### constructor

• **new VBoolean**\<`Type`, `IsOptional`>(`«destructured»`)

#### Type parameters

| Name | Type |
| :- | :- |
| `Type` | `boolean` |
| `IsOptional` | extends [`OptionalProperty`](/api/modules/browser#optionalproperty) = `"required"` |

#### Parameters

| Name | Type |
| :- | :- |
| `«destructured»` | `Object` |
| › `isOptional` | `IsOptional` |

#### Inherited from

BaseValidator\<Type, IsOptional>.constructor

## Properties

### type

• `Readonly` **type**: `Type`

#### Inherited from

BaseValidator.type

***

### fieldPaths

• `Readonly` **fieldPaths**: `never`

#### Inherited from

BaseValidator.fieldPaths

***

### isOptional

• `Readonly` **isOptional**: `IsOptional`

#### Inherited from

BaseValidator.isOptional

***

### isConvexValidator

• `Readonly` **isConvexValidator**: `true`

#### Inherited from

BaseValidator.isConvexValidator

***

### kind

• `Readonly` **kind**: `"boolean"`

## Accessors

### json

• `get` **json**(): [`ValidatorJSON`](/api/modules/browser#validatorjson)

#### Returns

[`ValidatorJSON`](/api/modules/browser#validatorjson)

#### Overrides

BaseValidator.json

## Methods

### optional

▸ **optional**(): [`VBoolean`](/api/classes/browser.VBoolean)\<`undefined` | `Type`, `"optional"`>

#### Returns

[`VBoolean`](/api/classes/browser.VBoolean)\<`undefined` | `Type`, `"optional"`>

#### Overrides

BaseValidator.optional

***

### asOptional

▸ **asOptional**(): [`VBoolean`](/api/classes/browser.VBoolean)\<`undefined` | `Type`, `"optional"`>

#### Returns

[`VBoolean`](/api/classes/browser.VBoolean)\<`undefined` | `Type`, `"optional"`>

#### Overrides

BaseValidator.asOptional


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.