Methods
get
get( key: K ) : V | undefined
Parameters
Returns V | undefined
set
set( key: K , value: V | undefined ) : void
Parameters
key: K
value: V | undefined
Returns void
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Type alias with type parameter
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
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 ofMap<K, V>
andSet<T>
.For more information:
https://github.com/TypeScriptToLua/TypeScriptToLua/wiki/Compiler-Annotations#luaTable