Type alias LuaTableSetMethod<TKey, TValue>

LuaTableSetMethod<TKey, TValue>: ((key, value) => void) & LuaExtension<"TableSetMethod">

Calls to methods with this type are translated to table[key] = value, 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 to assign to the table.

Type declaration

    • (key, value): void
    • Parameters

      • key: TKey
      • value: TValue

      Returns void

Generated using TypeDoc