Type alias LuaTableGetMethod<TKey, TValue>

LuaTableGetMethod<TKey, TValue>: ((key) => TValue) & LuaExtension<"TableGetMethod">

Calls to methods with this type are translated to table[key], where table is the object with the method. For more information see: https://typescripttolua.github.io/docs/advanced/language-extensions

Type Parameters

  • 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

    • (key): TValue
    • Parameters

      • key: TKey

      Returns TValue

Generated using TypeDoc