Type alias LuaTableGet<TTable, TKey, TValue>

LuaTableGet<TTable, TKey, TValue>: ((table, key) => TValue) & LuaExtension<"TableGet">

Calls to functions with this type are translated to table[key]. For more information see: https://typescripttolua.github.io/docs/advanced/language-extensions

Type Parameters

  • TTable extends AnyTable

    The type to access as a Lua table.

  • TKey extends AnyNotNil

    The type of the key to use to access the table.

  • TValue

    The type of the value stored in the table.

Type declaration

    • (table, key): TValue
    • Parameters

      • table: TTable
      • key: TKey

      Returns TValue

Generated using TypeDoc