> ## 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: VArray<Type, Element, IsOptional>

> Not exported: an exported type refers to it.

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

Not exported: an exported type refers to it.

## Type parameters

| Name | Type |
| :- | :- |
| `Type` | `Type` |
| `Element` | extends [`Validator`](/api/modules/browser#validator)\<`any`, `"required"`, `any`> |
| `IsOptional` | extends [`OptionalProperty`](/api/modules/browser#optionalproperty) = `"required"` |

## Hierarchy

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

  ↳ **`VArray`**

## Constructors

### constructor

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

#### Type parameters

| Name | Type |
| :- | :- |
| `Type` | `Type` |
| `Element` | extends [`Validator`](/api/modules/browser#validator)\<`any`, `"required"`, `any`> |
| `IsOptional` | extends [`OptionalProperty`](/api/modules/browser#optionalproperty) = `"required"` |

#### Parameters

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

#### Overrides

BaseValidator\&lt;Type, IsOptional\&gt;.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

***

### element

• `Readonly` **element**: `Element`

***

### kind

• `Readonly` **kind**: `"array"`

## Accessors

### json

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

#### Returns

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

#### Overrides

BaseValidator.json

## Methods

### optional

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

#### Returns

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

#### Overrides

BaseValidator.optional

***

### asOptional

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

#### Returns

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

#### Overrides

BaseValidator.asOptional


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