Skip to content

API reference / @jsprismarine/script-host / values

values ​

Classes ​

Type Aliases ​

ScriptValue ​

ScriptValue = undefined | null | boolean | number | string | ScriptHandle

Defined in: script-host/src/values.ts:34

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

Variables ​

ValueTag ​

const ValueTag: object

Defined in: script-host/src/values.ts:10

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