Packages
recs
enums
Type

@latticexyz/recs / Type

Enumeration: Type

Type enum is used to specify value types in ComponentSchema to be able to access type values in JavaScript in addition to TypeScript type checks.

Table of contents

Enumeration Members

Enumeration Members

BigInt

BigInt = 3

Defined in

constants.ts:9 (opens in a new tab)


BigIntArray

BigIntArray = 9

Defined in

constants.ts:15 (opens in a new tab)


Boolean

Boolean = 0

Defined in

constants.ts:6 (opens in a new tab)


Entity

Entity = 13

Defined in

constants.ts:19 (opens in a new tab)


EntityArray

EntityArray = 15

Defined in

constants.ts:21 (opens in a new tab)


Number

Number = 1

Defined in

constants.ts:7 (opens in a new tab)


NumberArray

NumberArray = 7

Defined in

constants.ts:13 (opens in a new tab)


OptionalBigInt

OptionalBigInt = 4

Defined in

constants.ts:10 (opens in a new tab)


OptionalBigIntArray

OptionalBigIntArray = 10

Defined in

constants.ts:16 (opens in a new tab)


OptionalEntity

OptionalEntity = 14

Defined in

constants.ts:20 (opens in a new tab)


OptionalEntityArray

OptionalEntityArray = 16

Defined in

constants.ts:22 (opens in a new tab)


OptionalNumber

OptionalNumber = 2

Defined in

constants.ts:8 (opens in a new tab)


OptionalNumberArray

OptionalNumberArray = 8

Defined in

constants.ts:14 (opens in a new tab)


OptionalString

OptionalString = 6

Defined in

constants.ts:12 (opens in a new tab)


OptionalStringArray

OptionalStringArray = 12

Defined in

constants.ts:18 (opens in a new tab)


OptionalT

OptionalT = 18

Defined in

constants.ts:24 (opens in a new tab)


String

String = 5

Defined in

constants.ts:11 (opens in a new tab)


StringArray

StringArray = 11

Defined in

constants.ts:17 (opens in a new tab)


T

T = 17

Defined in

constants.ts:23 (opens in a new tab)