Function: $fromLuaArray()
ts
function $fromLuaArray<T>(array: LuaTable<number, T>): T[];Treat a Lua array as a TypeScript array.
The plugin removes this call and emits its argument. At runtime it reads the 1-based LuaTable entries back into a TypeScript array.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
array | LuaTable<number, T> | Lua array. |
Returns
T[]
Same values as a TypeScript array.