> ## 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: VCommandCall<C, O>

> A command association remains an ordinary string on the wire.

[values](https://docs.bijection.com/api/modules/values).VCommandCall

A command association remains an ordinary string on the wire.

## Type parameters

| Name | Type |
| :- | :- |
| `C` | extends [`CommandHandle`](https://docs.bijection.com/api/modules/server#commandhandle)\<`any`, `any`> |
| `O` | extends [`OptionalProperty`](https://docs.bijection.com/api/modules/values#optionalproperty) = `"required"` |

## Hierarchy

* [`VString`](https://docs.bijection.com/api/classes/values.VString)\<[`CommandCallReference`](https://docs.bijection.com/api/modules/values#commandcallreference)\<`C`> | `O` extends `"optional"` ? `undefined` : `never`, `O`>

  ↳ **`VCommandCall`**

## Constructors

### constructor

• **new VCommandCall**\<`C`, `O`>(`command`, `isOptional`)

#### Type parameters

| Name | Type |
| :- | :- |
| `C` | extends [`CommandHandle`](https://docs.bijection.com/api/modules/server#commandhandle)\<`any`, `any`> |
| `O` | extends [`OptionalProperty`](https://docs.bijection.com/api/modules/values#optionalproperty) = `"required"` |

#### Parameters

| Name | Type |
| :- | :- |
| `command` | `C` |
| `isOptional` | `O` |

#### Overrides

[VString](https://docs.bijection.com/api/classes/values.VString.md).[constructor](https://docs.bijection.com/api/classes/values.VString.md#constructor)

## Properties

### \[commandCallMetadata]

• `Readonly` **\[commandCallMetadata]**: `true`

***

### command

• `Readonly` **command**: `C`

***

### type

• `Readonly` **type**: [`CommandCallReference`](https://docs.bijection.com/api/modules/values#commandcallreference)\<`C`> | `O` extends `"optional"` ? `undefined` : `never`

Only for TypeScript, the TS type of the JS values validated
by this validator.

#### Inherited from

[VString](https://docs.bijection.com/api/classes/values.VString.md).[type](https://docs.bijection.com/api/classes/values.VString.md#type)

***

### fieldPaths

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

Only for TypeScript, if this an Object validator, then
this is the TS type of its property names.

#### Inherited from

[VString](https://docs.bijection.com/api/classes/values.VString.md).[fieldPaths](https://docs.bijection.com/api/classes/values.VString.md#fieldpaths)

***

### isOptional

• `Readonly` **isOptional**: `O`

Whether this is an optional Object property value validator.

#### Inherited from

[VString](https://docs.bijection.com/api/classes/values.VString.md).[isOptional](https://docs.bijection.com/api/classes/values.VString.md#isoptional)

***

### isConvexValidator

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

Always `"true"`.

#### Inherited from

[VString](https://docs.bijection.com/api/classes/values.VString.md).[isConvexValidator](https://docs.bijection.com/api/classes/values.VString.md#isconvexvalidator)

***

### kind

• `Readonly` **kind**: `"string"`

The kind of validator, `"string"`.

#### Inherited from

[VString](https://docs.bijection.com/api/classes/values.VString.md).[kind](https://docs.bijection.com/api/classes/values.VString.md#kind)

## Methods

### optional

▸ **optional**(): [`VCommandCall`](https://docs.bijection.com/api/classes/values.VCommandCall)\<`C`, `"optional"`>

Allow this validated field to be absent.

#### Returns

[`VCommandCall`](https://docs.bijection.com/api/classes/values.VCommandCall)\<`C`, `"optional"`>

#### Overrides

[VString](https://docs.bijection.com/api/classes/values.VString.md).[optional](https://docs.bijection.com/api/classes/values.VString.md#optional)

***

### asOptional

▸ **asOptional**(): [`VCommandCall`](https://docs.bijection.com/api/classes/values.VCommandCall)\<`C`, `"optional"`>

#### Returns

[`VCommandCall`](https://docs.bijection.com/api/classes/values.VCommandCall)\<`C`, `"optional"`>

#### Overrides

VString.asOptional


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