[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/script-host](https://jsprismarine.dev/api/@jsprismarine/script-host/index.md) / values

# values

## Classes

- [ScriptHandle](https://jsprismarine.dev/api/@jsprismarine/script-host/values/classes/ScriptHandle.md)
- [TransferBuffer](https://jsprismarine.dev/api/@jsprismarine/script-host/values/classes/TransferBuffer.md)
- [ValueReader](https://jsprismarine.dev/api/@jsprismarine/script-host/values/classes/ValueReader.md)
- [ValueWriter](https://jsprismarine.dev/api/@jsprismarine/script-host/values/classes/ValueWriter.md)

## Type Aliases

### ScriptValue

> **ScriptValue** = `undefined` \| `null` \| `boolean` \| `number` \| `string` \| [`ScriptHandle`](https://jsprismarine.dev/api/@jsprismarine/script-host/values/classes/ScriptHandle.md)

Defined in: [script-host/src/values.ts:34](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/values.ts#L34)

A value as it crosses between the host and a script.

## Variables

### ValueTag

> `const` **ValueTag**: `object`

Defined in: [script-host/src/values.ts:10](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/script-host/src/values.ts#L10)

The tag bytes of the value encoding.

#### Type Declaration

##### False

> `readonly` **False**: `2` = `2`

##### Handle

> `readonly` **Handle**: `6` = `6`

##### Null

> `readonly` **Null**: `1` = `1`

##### Number

> `readonly` **Number**: `4` = `4`

##### String

> `readonly` **String**: `5` = `5`

##### True

> `readonly` **True**: `3` = `3`

##### Undefined

> `readonly` **Undefined**: `0` = `0`
