@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

  • BigInt
  • BigIntArray
  • Boolean
  • Entity
  • EntityArray
  • Number
  • NumberArray
  • OptionalBigInt
  • OptionalBigIntArray
  • OptionalEntity
  • OptionalEntityArray
  • OptionalNumber
  • OptionalNumberArray
  • OptionalString
  • OptionalStringArray
  • OptionalT
  • String
  • StringArray
  • T

# Enumeration Members

# BigInt

BigInt = 3

# Defined in

constants.ts:9


# BigIntArray

BigIntArray = 9

# Defined in

constants.ts:15


# Boolean

Boolean = 0

# Defined in

constants.ts:6


# Entity

Entity = 13

# Defined in

constants.ts:19


# EntityArray

EntityArray = 15

# Defined in

constants.ts:21


# Number

Number = 1

# Defined in

constants.ts:7


# NumberArray

NumberArray = 7

# Defined in

constants.ts:13


# OptionalBigInt

OptionalBigInt = 4

# Defined in

constants.ts:10


# OptionalBigIntArray

OptionalBigIntArray = 10

# Defined in

constants.ts:16


# OptionalEntity

OptionalEntity = 14

# Defined in

constants.ts:20


# OptionalEntityArray

OptionalEntityArray = 16

# Defined in

constants.ts:22


# OptionalNumber

OptionalNumber = 2

# Defined in

constants.ts:8


# OptionalNumberArray

OptionalNumberArray = 8

# Defined in

constants.ts:14


# OptionalString

OptionalString = 6

# Defined in

constants.ts:12


# OptionalStringArray

OptionalStringArray = 12

# Defined in

constants.ts:18


# OptionalT

OptionalT = 18

# Defined in

constants.ts:24


# String

String = 5

# Defined in

constants.ts:11


# StringArray

StringArray = 11

# Defined in

constants.ts:17


# T

T = 17

# Defined in

constants.ts:23