Options
All
  • Public
  • Public/Protected
  • All
Menu
luatable

LuaTable is similar to typescripts Record<K, V>. LuaTable instances are treated like a native Lua table. This can be used to avoid the overhead of Map<K, V> and Set<T>.

For more information:

see

https://github.com/TypeScriptToLua/TypeScriptToLua/wiki/Compiler-Annotations#luaTable

Type parameters

  • K: {}

  • V

Hierarchy

  • LuaTable

Properties

length

length: number

Methods

get

  • get(key: K): V | undefined
  • Parameters

    • key: K

    Returns V | undefined

set

  • set(key: K, value: V | undefined): void
  • Parameters

    • key: K
    • value: V | undefined

    Returns void